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 |
what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7
find out largest elemant of diagonalmatrix
What is c language and why we use it?
Which is more efficient, a switch statement or an if else chain?
What is the use of parallelize in spark?
Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is sorted and A[n+1] ... A[n+m] is sorted. Design a linear time algorithm to obtain A[1...n+m] sorted using only O(1) extra space. Time Complexity of your algorithm should be O(n) and Space Complexity O(1).
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
How to implement a packet in C
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year