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 / arka bandyopadhyay
Basically it's a tricky question and the values of v[i] cannot be predicted as there is "i++" which means 'use than change'
that is error associated with the program so using ++i will give us the correct result.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the size of array float a(10)?
Are c and c++ the same?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is a void pointer? When is a void pointer used?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What does %p mean?
What does malloc () calloc () realloc () free () do?
What is the size of structure in c?
Tell me about low level programming languages.
What's the total generic pointer type?
What is the difference between union and anonymous union?
Subtract Two Number Without Using Subtraction Operator
What is malloc and calloc?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
write a c program to find the sum of five entered numbers using an array named number