Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1154


Write a program to check prime number in c programming?

1093


What is calloc()?

1071


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1176


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1413


What is the difference between declaring a variable and defining a variable?

1273


How do you write a program which produces its own source code as output?

1118


What are global variables and explain how do you declare them?

1099


Do you know the purpose of 'register' keyword?

1019


How do you use a pointer to a function?

1081


What does c mean before a date?

1176


How do you construct an increment statement or decrement statement in C?

1232


How do I round numbers?

1008


What is the main difference between calloc () and malloc ()?

1153


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

1094