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

main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / raju

correct answer is 2 bcz once assign only that will take as
that value

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use void main in c?

1175


What is the sizeof () operator?

1088


Why c is called a middle level language?

1114


What is #define in c?

1048


Explain what is the advantage of a random access file?

1126


Can we assign integer value to char in c?

1256


if p is a string contained in a string?

1851


What is the use of void pointer and null pointer in c language?

1127


What is the difference between new and malloc functions?

1132


Explain continue keyword in c

1022


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1035


What is the code in while loop that returns the output of given code?

1999


Is c procedural or functional?

1039


What are the different data types in C?

1205


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1104