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
Why c is procedure oriented?
How many keywords (reserve words) are in c?
Explain how does flowchart help in writing a program?
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 omp_num_threads?
What is printf () in c?
What is pragma c?
Write a program to know whether the input number is an armstrong number.
What does c mean before a date?
Explain the difference between malloc() and calloc() function?
What is a macro in c preprocessor?
What is structure and union in c?
Why do we use c for the speed of light?
why do some people write if(0 == x) instead of if(x == 0)?
What are multidimensional arrays?