. 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 / kupendiran
3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the advantage of a random access file?
What are pointers? What are different types of pointers?
When is a “switch” statement preferable over an “if” statement?
How can a program be made to print the line number where an error occurs?
What is size of union in c?
What is meant by preprocessor in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is difference between far and near pointers?
Describe explain how arrays can be passed to a user defined function
How can I handle floating-point exceptions gracefully?
can we have joblib in a proc ?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How many types of functions are there in c?
What is graph in c?
What is pre-emptive data structure and explain it with example?