void main()
{
char c;
while(c=getchar()!='\n')
printf("%d",c);
}
o/p=11 why?

Answer Posted / satya

I Think ascii value of \n is 92.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int main () mean?

554


Explain what is a 'locale'?

587


what is a constant pointer in C

682


What is dangling pointer in c?

627


Do you know the purpose of 'register' keyword?

646






Is linux written in c?

603


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

736


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1667


In C, What is the #line used for?

1072


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1361


What's the right way to use errno?

628


What is scope of variable in c?

573


Why pointers are used?

633


What is an auto variable in c?

761


Explain how can I convert a string to a number?

647