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
How do you determine the length of a string value that was stored in a variable?
How can I read and write comma-delimited text?
What is nested structure with example?
What is clrscr ()?
What is boolean in c?
What is the difference between text and binary modes?
What are the preprocessor categories?
All technical questions
Explain that why C is procedural?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is c programming structure?
Differentiate between the = symbol and == symbol?
What is scope and lifetime of a variable in c?
What are the salient features of c languages?
Is there any possibility to create customized header file with c programming language?