void main()
{
char c;
while(c=getchar()!='\n')
printf("%d",c);
}
o/p=11 why?

Answer Posted / abdul qadir

11 is a garbage value at address in memory

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is break in c?

590


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

681


Explain Basic concepts of C language?

651


What is c token?

615


Explain why c is faster than c++?

579






There seem to be a few missing operators ..

621


What is difference between array and structure in c?

583


Explain what are multidimensional arrays?

607


Is void a keyword in c?

582


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

675


How do I swap bytes?

634


What are the two forms of #include directive?

646


What language is lisp written in?

622


What is pointer to pointer in c language?

600


What is abstract data structure in c?

533