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
Write a progarm to find the length of string using switch case?
What is the maximum length of an identifier?
Difference between goto, long jmp() and setjmp()?
How are structure passing and returning implemented?
What are pointers? Why are they used?
What is bss in c?
Explain what is a program flowchart and explain how does it help in writing a program?
What is the purpose of sprintf?
simple program of graphics and their output display
Can we declare a function inside a function in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
How many bytes are occupied by near, far and huge pointers (dos)?
What is scanf_s in c?
What is the explanation for the dangling pointer in c?
What functions are in conio h?