What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answer Posted / akash dhal
initialized with 0
in for loop ist time condition satisfied so print 0,like
this 127 will be printed .as it is a signed no. so 127+1 is
-128 so condition false come out of the loop.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How would you rename a function in C?
How can I remove the leading spaces from a string?
What is the use of c language in real life?
Tell me what are bitwise shift operators?
What is the size of enum in bytes?
What is meant by inheritance?
Which node is more powerful and can handle local information processing or graphics processing?
How can a process change an environment variable in its caller?
write a program to generate address labels using structures?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
How old is c programming language?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
How to declare a variable?
What is the purpose of main() function?
What do you mean by command line argument?