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
What are types of functions?
triangle number finding program...
What are the types of pointers in c?
find largest of 3 no
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
Is main is a keyword in c?
a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..
can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?
What does double pointer mean in c?
what is the function of .h in #include<stdio.h> in c ?
23 Answers HCL, IBM, Wipro,
Describe the difference between = and == symbols in c programming?
why Language C is plateform dependent