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 / jitendra kumar arya
c
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How can you read a directory in a C program?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
How can I prevent another program from modifying part of a file that I am modifying?
Write a c program to demonstrate character and string constants?
Explain how do you print an address?
What is the concatenation operator?
Why malloc is faster than calloc?
What is a program?
What are the advantages and disadvantages of a heap?
How can you find out how much memory is available?
How do you list a file’s date and time?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is function prototype in c language?
what is the diffrenet bettwen HTTP and internet protocol