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 / karan
it will display the garbage value bcoz there is semicolon
at end of the for loop which will be
-128
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are header files? What are their uses?
What is the process to create increment and decrement stamen in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is ## preprocessor operator in c?
What is the use of pointers in C?
What is the difference between int main and void main in c?
Can you write a programmer for FACTORIAL using recursion?
write a program to create a sparse matrix using dynamic memory allocation.
What is a function in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
How can you tell whether a program was compiled using c versus c++?
Should I learn data structures in c or python?
What is union and structure in c?
Define recursion in c.
What is the use of a ‘ ’ character?