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


Please Help Members By Posting Answers For Below Questions

Explain how do you search data in a data file using random access method?

687


What is the c language function prototype?

640


What are global variables and how do you declare them?

610


Explain how do you sort filenames in a directory?

598


Is return a keyword in c?

590






List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2296


What do you mean by command line argument?

634


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1701


What is %g in c?

608


How many bytes are occupied by near, far and huge pointers (dos)?

658


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

702


What is bubble sort in c?

627


How does free() know explain how much memory to release?

610


write a program to print largest number of each row of a 2D array

1864


Why ca not I do something like this?

583