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 / 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


Please Help Members By Posting Answers For Below Questions

What is difference between union and structure in c?

1084


What is ponter?

1234


Do variables need to be initialized?

1003


find the sum of two matrices and WAP for it.

1075


Why static variable is used in c?

992


What is wrong in this statement? scanf(“%d”,whatnumber);

1198


Is c++ based on c?

1033


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2072


What are linker error?

1048


What is assignment operator?

1015


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1154


What is variable in c example?

1004


Why is it that not all header files are declared in every C program?

1158


Why can’t constant values be used to define an array’s initial size?

1333


Write a program to print all permutations of a given string.

1144