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 / optimistsushma
B)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why does everyone say not to use scanf? What should I use instead?
what is bit rate & baud rate? plz give wave forms
Is c easy to learn?
What are the back slash character constants or escape sequence charactersavailable in c?
why return type of main is not necessary in linux
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is malloc and calloc?
How is a pointer variable declared?
What is the difference between int main and void main?
What is identifiers in c with examples?
What would be an example of a structure analogous to structure c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What 'lex' does?
What is a spanning Tree?