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 / prasanna kumar [cse dept. kln
i think the program will give the output as 0 or null....
because i=0 is in int datatype but in this program it is
declared as character datatype so it will give the output as
0 or null and it will goes for only one time after wards it
will incremented and goes infinitely....
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is the use of printf() and scanf() functions?
Is c is a low level language?
What is the sizeof () operator?
What is an auto keyword in c?
Explain the difference between malloc() and calloc() function?
What is pointer to pointer in c?
Explain what is #line used for?
What does %c mean in c?
What is the purpose of sprintf?
What is the use of typedef in structure in c?
How can you read a directory in a C program?
What is a double c?
what is the function of pragma directive in c?
What is atoi and atof in c?