what is op?
for(c=0;c=1000;c++)
printf("%c",c);
Answer Posted / 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 |
Post New Answer View All Answers
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
What is the 'named constructor idiom'?
What is size of union in c?
In a switch statement, explain what will happen if a break statement is omitted?
What does a pointer variable always consist of?
write a c program for swapping two strings using pointer
What is selection sort in c?
Which is best book for data structures in c?
What are the types of operators in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Difference between goto, long jmp() and setjmp()?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How to draw the flowchart for structure programs?
Does * p ++ increment p or what it points to?
What are the modifiers available in c programming language?