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
What is the purpose of scanf() and printf() functions?
What will the preprocessor do for a program?
What is a list in c?
what is recursion in C
Differentiate between static and dynamic modeling.
What is wrong with this initialization?
Are the outer parentheses in return statements really optional?
what is the role you expect in software industry?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What does %d do?
Explain how do you print an address?
What are linked lists in c?
Is null always defined as 0(zero)?
What is the use of getch ()?
What do you mean by recursion in c?