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
What is return in c programming?
How do you define CONSTANT in C?
How many bytes is a struct in c?
What is 1d array in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is wrong in this statement? scanf(“%d”,whatnumber);
how to find binary of number?
What the advantages of using Unions?
What is the difference between Printf(..) and sprint(...) ?
Is there anything like an ifdef for typedefs?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What are the types of bitwise operator?
What is #line?
Do you know the use of 'auto' keyword?
What is switch in c?