Search:

Type: Posts; User: syamprasadkr

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,068

    Yeah..it looks so,Thank U.

    Yeah..it looks so,Thank U.
  2. Replies
    2
    Views
    1,068

    Inserting string with getchar()

    I have the following piece of code


    for(i=0;(ch=getchar())!='\n';i++)
    s[i]=ch;


    Why do we use ch here?
    Why can't we use array directly?
    Is it some kind of programming practice?
Results 1 to 2 of 2