. 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 / veerendra
here b is an pointer. u r askng the value stored in a b's
array of -1....pointer may not be array here..
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is default value of global variable in c?
which type of aspect you want from the student.
How to set file pointer to beginning c?
What is c standard library?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What do you mean by dynamic memory allocation in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is a function in c?
What are the types of i/o functions?
What is a structure member in c?
What is conio h in c?
In a header file whether functions are declared or defined?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is a pointer and how it is initialized?