Write code for initializing one dimentional and two
dimentional array in a C Program?
Answer Posted / kalpana.y
array:array is a collection of elements
one dimensional array:
code:
datatype arraysize[];
eg:
int a[5];
two-dimensional array:
code:
datatype array[rowsize][columnsize];
eg:
int a[5][5];
| Is This Answer Correct ? | 14 Yes | 8 No |
Post New Answer View All Answers
How can you convert integers to binary or hexadecimal?
What are structures and unions? State differencves between them.
I need previous papers of CSC.......plz help out by posting them.......
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 are low level languages?
What is local and global variable in c?
What is #include stdio h?
What are data structures in c and how to use them?
Why is c called a structured programming language?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Why is c called c not d or e?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Can include files be nested?
can we change the default calling convention in c if yes than how.........?
What is the use of bitwise operator?