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

12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV

Answer Posted / rakesh

B)only 2

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a pre-processor and its advantages.

1136


What is the role of this pointer?

1070


What is the use of getchar() function?

1133


What is #include cctype?

1123


Give the rules for variable declaration?

1178


What are the modifiers available in c programming language?

1223


how is the examination pattern?

2021


What are the advantages of the functions?

1162


What is character set?

1171


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

1415


What is the difference between array and pointer?

1027


I heard that you have to include stdio.h before calling printf. Why?

1067


Explain what are reserved words?

1105


What language is windows 1.0 written?

1066


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1192