how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / binz
Answer is
5
3
1
But you should change your printf statement to printf("%d",
i--);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
#include
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is signed and unsigned?
What is time complexity c?
Why is c called c?
What are dangling pointers? How are dangling pointers different from memory leaks?
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.
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is s in c?
List some of the static data structures in C?
What should malloc(0) do?
What is clrscr in c?
provide an example of the Group by clause, when would you use this clause
Explain the properties of union. What is the size of a union variable
When a c file is executed there are many files that are automatically opened what are they files?