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
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
using for loop sum 2 number of any 4 digit number in c language
What is a MAC Address?
Explain enumerated types.
How can you tell whether two strings are the same?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is the advantage of a random access file?
Describe the order of precedence with regards to operators in C.
What is structure packing in c?
Why is extern used in c?
What is call by reference in functions?
What is the advantage of using #define to declare a constant?
What is gets() function?
What is a program flowchart and explain how does it help in writing a program?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)