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

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

B

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between object file and executable file

6640


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1166


How can you return multiple values from a function?

1050


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2106


Explain the difference between call by value and call by reference in c language?

1052


What is the best way to store flag values in a program?

1009


What is size of union in c?

976


How can I invoke another program or command and trap its output?

1046


a program that can input number of records and can view it again the record

1863


Explain what does it mean when a pointer is used in an if statement?

1004


What are the different types of errors?

1071


What is the difference between procedural and declarative language?

1093


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1054


Can you assign a different address to an array tag?

1109


What was noalias and what ever happened to it?

979