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
What does int main () mean?
Explain what is a 'locale'?
what is a constant pointer in C
What is dangling pointer in c?
Do you know the purpose of 'register' keyword?
Is linux written in c?
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
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?
In C, What is the #line used for?
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);
What's the right way to use errno?
What is scope of variable in c?
Why pointers are used?
What is an auto variable in c?
Explain how can I convert a string to a number?