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

Answers were Sorted based on User's Feedback



Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a);..

Answer / santhoo035

C

Is This Answer Correct ?    4 Yes 2 No

Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a);..

Answer / jitendra kumar arya

c

Is This Answer Correct ?    3 Yes 2 No

Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a);..

Answer / optimistsushma

B)

Is This Answer Correct ?    1 Yes 1 No

Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a);..

Answer / rohit

B

Is This Answer Correct ?    0 Yes 0 No

Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a);..

Answer / hussain reddy

c

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What are different types of variables in c?

0 Answers  


yogesh patil in dell

3 Answers   DELL,


what is an ERP?

2 Answers   Infotech,


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

0 Answers  


The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

0 Answers  


What are the 5 elements of structure?

0 Answers  


What is the difference between array and pointer in c?

0 Answers  


Explain threaded binary trees?

0 Answers  


What are # preprocessor operator in c?

0 Answers  


to convert a string without using decrement operater and string functions

1 Answers  


What does c mean in standard form?

0 Answers  


Categories