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 / madhu
127.As i is a char the last digit would be 127,so the loop
stops at that point.
I crosschecked it writing a program.
| Is This Answer Correct ? | 1 Yes | 9 No |
Post New Answer View All Answers
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
How do shell structures work?
Explain what are header files and explain what are its uses in c programming?
How important is structure in life?
How many levels deep can include files be nested?
what do the 'c' and 'v' in argc and argv stand for?
What are operators in c?
Can include files be nested?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Are pointers integer?
What is structure padding in c?
What does sizeof return c?
Explain what is a const pointer?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
In which header file is the null macro defined?