what is op?
for(c=0;c=1000;c++)
printf("%c",c);
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
infinite loop.
and print the character associated with the 1000,1001,1002,....
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinoth
It will work fine no value or error will be displayed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / a programmer
This will print the ascii characters from 0 to 1000 if the
datat type of the variable c is other than character. If the
datatype of the variable is char then it will be into
infinite loop.
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / jay sean
The output of the given program is the character or ascii
value of 0,1,2,..........so on up to the stack of memory
get full.The reason behind it is the condition for
termination is not given in the for loop,because c=1000 is
assingment operator not a conditional.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / manju
In each iteration the equivalent ascii values of 0 to 1000
will print.
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / sarath
in each iteration it will print the characters for ascii
values 0,1,2,3,...
| Is This Answer Correct ? | 6 Yes | 11 No |
Answer / rohit
it will come out of the for loop & hence no output.
because,when c=0,then for next condition it will check
whether 0==1000,the condition fails here itself only.
so,it doesn't go for executing any statement.
| Is This Answer Correct ? | 1 Yes | 6 No |
Is it valid to address one element beyond the end of an array?
how can i get this by using for loop? * ** * **** * ******
What does char * * argv mean in c?
Should I learn c before c++?
What is the difference between array and linked list in c?
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
What is main () in c language?
Explain the term printf() and scanf() used in c language?
how to find the size of the data type like int,float without using the sizeof operator?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.