. 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 / sujay

I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array a primitive data type in c?

581


Can a local variable be volatile in c?

582


What are two dimensional arrays alternatively called as?

665


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

1666


Can the sizeof operator be used to tell the size of an array passed to a function?

622






What is volatile variable in c?

660


Explain how can you restore a redirected standard stream?

594


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

636


How can I implement sets or arrays of bits?

609


What is c mainly used for?

601


Is main is a keyword in c?

613


Which is the memory area not included in C program? give the reason

1510


Explain what is the difference between functions getch() and getche()?

611


Explain bitwise shift operators?

634


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1332