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 |
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
What does calloc stand for?
What is the concatenation operator?
value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?
How can I direct output to the printer?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
How to write a multi-statement macro?
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
what is the mean of c languages.