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 |
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?
c program to compute Income tax and Net Salary for its employees. The company offers tax relief of Kshs. 650 for single employees and Kshs. 1,100 for married employees. The relief will be deducted from the Gross salary, to give the taxable income. This will be computed at the following rates: [10mks] Taxable Income Rate (%) <5000 0 5000-19999 6 20000-36999 9 37000 and above 16
Why n++ execute faster than n+1 ?
How can I invoke another program or command and trap its output?
What is main () in c language?
List some basic data types in c?
What are pointers in C?
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.
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
What is the scope of static variables in c language?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
how c source file in converted to exe file