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 are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What are global variables and explain how do you declare them?
Why c is called a middle level language?
What is integer constants?
How many types of operator or there in c?
Explain void pointer?
Why structure is used in c?
What is the use of bitwise operator?
How can you increase the size of a statically allocated array?
Why are all header files not declared in every c program?
How is a structure member accessed?
What is the function of multilevel pointer in c?
What is a rvalue?
What is a MAC Address?
writ a program to compare using strcmp VIVA and viva with its output.