. Consider the following program
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(A) 1 (B) 3 (C) -6 (D) none
Answer Posted / gagan
answer is 3
bcz b[0]=6 so b[-1]=3
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
How can a program be made to print the name of a source file where an error occurs?
What does return 1 means in c?
Explain what does it mean when a pointer is used in an if statement?
Why is c called "mother" language?
How do you define a function?
Explain the use of function toupper() with and example code?
Why header files are used?
What does double pointer mean in c?
What language is windows 1.0 written?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What are the advantages and disadvantages of a heap?
Is return a keyword in c?
What is a pointer variable in c language?
What is a structural principle?