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
the question is that what you have been doing all these periods (one year gap)
Are bit fields portable?
Explain which function in c can be used to append a string to another string?
write a program to copy the string using switch case?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is calloc in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Write a progarm to find the length of string using switch case?
Is it acceptable to declare/define a variable in a c header?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the difference between functions getch() and getche()?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
If fflush wont work, what can I use to flush input?
`write a program to display the recomended action depends on a color of trafic light using nested if statments