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 / karan
it will display the garbage value bcoz there is semicolon
at end of the for loop which will be
-128
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is use of #include in c?
What are the applications of c language?
Tell us two differences between new () and malloc ()?
Why cant I open a file by its explicit path?
what is the different bitween abap and abap-hr?
Write a program to know whether the input number is an armstrong number.
How can I ensure that integer arithmetic doesnt overflow?
Is file a keyword in c?
What is the role of this pointer?
What do the functions atoi(), itoa() and gcvt() do?
Why do we write return 0 in c?
What is unary operator?
Why does everyone say not to use gets?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What should malloc() do?