Search:

Type: Posts; User: karanmitra

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,382

    K&R problem !! String concatenation :(

    Here is another problem from K&R , I have been sittin with it for 4 hours

    This program tried to concatenate two strings. It aint doin it





    #include "stdio.h"
  2. Replies
    2
    Views
    2,174

    concatenate two strings! K&R problem

    Here is another problem from K&R , I have been sittin with it for 4 hours :(

    This program tried to concatenate two strings. It aint doin it




    #include "stdio.h"

    int str_cat(char *,...
  3. Replies
    17
    Views
    2,114

    Thats the answer guys char *a; then the...

    Thats the answer guys

    char *a;
    then the assignment a points to element 0 of a and a contains the address of a[0],
    a = &a[0]

    page 98-99 K&R

    Thanks Guys!
  4. Replies
    17
    Views
    2,114

    yep moonlord!! Thats what i believe too !!...

    yep moonlord!!

    Thats what i believe too !! well i m still checkin out some references

    cheers
  5. Replies
    17
    Views
    2,114

    mate i am just tryin to compare stings here . If...

    mate i am just tryin to compare stings here . If compared successfully the value returned in 0. if s<t then value returned is <0 . Thanks for ur help . I am comfortable with the basic idea now .

    I...
  6. Replies
    17
    Views
    2,114

    Thanks mate, But i havent understood the...

    Thanks mate,

    But i havent understood the funda if i do

    ret_val = stcmp(char *a, char *b)

    I am passing the first values ie : t and t and in the called function the processing is done from...
  7. Replies
    17
    Views
    2,114

    Its stilll giving problems man!

    Its stilll giving problems man!
  8. Replies
    17
    Views
    2,114

    string comparision : Urgent problem

    I m stuck here guys! Dont know why . I get an error sayin

    /***********error********************/
    str_cmp.c: In function `main':
    str_cmp.c:10: error: syntax error before "char"...
Results 1 to 8 of 8