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 / rani
output is
-128
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is malloc return c?
Explain the use of 'auto' keyword in c programming?
Explain the use of bit fieild.
What does double pointer mean in c?
What is class and object in c?
What is the use of bitwise operator?
Why is %d used in c?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
When is a “switch” statement preferable over an “if” statement?
Explain what are the different file extensions involved when programming in c?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
How to write a code for reverse of string without using string functions?
What is main function in c?
Explain null pointer.
What is a void * in c?