what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answers were Sorted based on User's Feedback
Answer / srikanth karnati
there is no output because there is no out statment
there.if write printf("%d",i);at out side the loop the
output will be 11.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dharmendra kumar
It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aswini
answer will be 10.it will never execute the loop as there
is semicolon.hence directly 10 will be assigned to i.
| Is This Answer Correct ? | 1 Yes | 3 No |
How will you find a duplicate number in a array without negating the nos ?
What is return type in c?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Why is event driven programming or procedural programming, better within specific scenario?
Difference between Class and Struct.
13 Answers Ericsson, Motorola, Wipro,
can we print any string in c language without using semicolon(;)(terminator) in whole program.
write a function for strtok()??
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Where define directive used?
when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .
What is a spanning Tree?