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
In a switch statement, what will happen if a break statement is omitted?
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
Was 2000 a leap year?
Explain zero based addressing.
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 “****”.
Why is c so powerful?
which type of aspect you want from the student.
What is gets() function?
I came across some code that puts a (void) cast before each call to printf. Why?
Is swift based on c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Write a program to identify if a given binary tree is balanced or not.
What are the 4 types of functions?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is the best organizational structure?