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 |
How pointer is different from array?
What is the use of the #include directive?
20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????
What are compound statements?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
Write a simple program to find the size of different basic data types in C.
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
write a “Hello World” program in “c” without using a semicolon?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is the difference between pure virtual function and virtual function?
Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?
How do I declare a pointer to an array?