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
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is a substring in c?
explain what is an endless loop?
What is the difference between exit() and _exit() function in c?
Explain c preprocessor?
Are negative numbers true in c?
What is the difference between struct and union in C?
what is event driven software and what is procedural driven software?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is %s and %d in c?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Is anything faster than c?
What is sizeof return in c?
Explain what is the most efficient way to store flag values?
State the difference between realloc and free.