what is op?
for(c=0;c=1000;c++)
printf("%c",c);
Answers were Sorted based on User's Feedback
Answer / vikas chauhan
It will print funny caharcter ( ascii equivalent of 1000
trucated char) infinitely
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / karthik
i executed this program it went on displaying funny
characters indefinite loop
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / abdur rab
It goes into an infinite loop.
The compiler will check only the syntax, it is upto the
programmer to implement correct logic.
other than initialization, c is always 1000 and there is no
condition to be break the loop
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sriharsha
It print's only what's the ASCII value of 1000 for infinite loop
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / dally
it will goto infinite loop because each time i=0 and i=100
so it will goto infinite loop.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sreekanth
Warnings:
Test expression for for is assignment expression: c = 1000
The condition test is an assignment expression. Probably,
you mean to use == instead of =. If an assignment is
intended, add an extra parentheses nesting(e.g., if ((a =
b)) ...) to suppress this message. (Use -predassign to
inhibit warning)
Test expression for for not boolean, type int: c = 1000.
Test expression type is not boolean or int. (Use
-predboolint to inhibit warning)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / m.kiran kumar
warning occurs as possibly incorrect statement.
and the statement falls into infinite loop printing the
ascii character equivalent to 0
Is This Answer Correct ? | 2 Yes | 2 No |
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.
11 Answers ABC Infotech, ADP, College School Exams Tests, Kovair,
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
3. When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these
change to postfix a/(b+c*d-e)
program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
The C language terminator is a.semicolon b.colon c.period d.exclamation mark
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
Explain what is wrong with this program statement?
What is a #include preprocessor?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is a shell structure examples?