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 check palindrome number in c programming?
How can variables be characterized?
What is a file descriptor in c?
how to build a exercise findig min number of e heap with list imlemented?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What language is c written?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the difference between abs() and fabs() functions?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Explain the properties of union. What is the size of a union variable
Why do some versions of toupper act strangely if given an upper-case letter?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is the difference between mpi and openmp?
explain what is a newline escape sequence?