void main()
{
char c;
while(c=getchar()!='\n')
printf("%d",c);
}
o/p=11 why?
Answer Posted / deepshree sinha
the while loop is continue until the expression is not false.
when the expression is false that is when c='\n' it will come
out from the loop.then it will print c which is equal to '\n'
whose integer value is 11.so it will print 11.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How many bytes are occupied by near, far and huge pointers (dos)?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is the g value paradox?
What is the correct code to have following output in c using nested for loop?
What is the benefit of using an enum rather than a #define constant?
What is sizeof array in c?
Why c is a mother language?
What is hash table in c?
Is c is a middle level language?
why we wont use '&' sing in aceesing the string using scanf
write a program to print data of 5 five students with structures?
What is the difference between text files and binary files?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Differentiate between a structure and a union.
shorting algorithmS