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
Explain how do you search data in a data file using random access method?
What is the c language function prototype?
What are global variables and how do you declare them?
Explain how do you sort filenames in a directory?
Is return a keyword in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What do you mean by command line argument?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is %g in c?
How many bytes are occupied by near, far and huge pointers (dos)?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What is bubble sort in c?
How does free() know explain how much memory to release?
write a program to print largest number of each row of a 2D array
Why ca not I do something like this?