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
How can you call a function, given its name as a string?
How does selection sort work in c?
How many types of errors are there in c language? Explain
What is a program flowchart and explain how does it help in writing a program?
What is null character in c?
What is this pointer in c plus plus?
What is the difference between arrays and pointers?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Explain how can you be sure that a program follows the ansi c standard?
What is sizeof int?
Who developed c language and when?
what are # pragma staments?
Is c still used?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.