what do you mean by defining a variable in our c code?
Answer Posted / nikhil saxena
We only declare & initialize the variables in our code but
we never define them.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
What is the purpose of realloc()?
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 significance of an algorithm to C programming?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
program for reversing a selected line word by word when multiple lines are given without using strrev
What is the Purpose of 'extern' keyword in a function declaration?
What is malloc return c?
Where are c variables stored in memory?
write a c program to find the sum of five entered numbers using an array named number
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
while initialization of array why we use a[][2] why not a[2][]...?
How is a structure member accessed?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Is null valid for pointers to functions?