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

c

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a switch statement, what will happen if a break statement is omitted?

610


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

684


Was 2000 a leap year?

635


Explain zero based addressing.

613


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2656






Why is c so powerful?

691


which type of aspect you want from the student.

1707


What is gets() function?

675


I came across some code that puts a (void) cast before each call to printf. Why?

687


Is swift based on c?

644


Why is it usually a bad idea to use gets()? Suggest a workaround.

915


Write a program to identify if a given binary tree is balanced or not.

691


What are the 4 types of functions?

579


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2708


What is the best organizational structure?

646