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
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Write a program to check prime number in c programming?
What is calloc()?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the difference between declaring a variable and defining a variable?
How do you write a program which produces its own source code as output?
What are global variables and explain how do you declare them?
Do you know the purpose of 'register' keyword?
How do you use a pointer to a function?
What does c mean before a date?
How do you construct an increment statement or decrement statement in C?
How do I round numbers?
What is the main difference between calloc () and malloc ()?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor