what is the purpose of the code, and is there any problem
with it.
unsigned int v[10];
unsigned int i = 0;
while (i < 10)
v[i] = i++;
Answer Posted / goutham
trying to fill the array v[i] with post increment of i,
there is no problem;
output is
v[0]=0;
v[1]=1
v[2]=2
v[3]=3
v[4]=4
v[5]=5
v[6]=6
v[7]=7
v[8]=8
v[9]=9
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Differentiate fundamental data types and derived data types in C.
What is the use of a conditional inclusion statement in C?
What is #include stdio h?
What is 2 d array in c?
What is main return c?
How can I recover the file name given an open stream or file descriptor?
Why is c platform dependent?
What extern c means?
When should a type cast not be used?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
what do the 'c' and 'v' in argc and argv stand for?
Does c have an equivalent to pascals with statement?
Explain what is the benefit of using #define to declare a constant?
What are identifiers c?
What is a static function in c?