. 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


Please Help Members By Posting Answers For Below Questions

Explain how can I convert a string to a number?

834


largest Of three Number using without if condition?

1249


Are bit fields portable?

883


Write a program to print all permutations of a given string.

916


Write a program with dynamically allocation of variable.

836


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1757


what will be maximum number of comparisons when number of elements are given?

1641


Can you apply link and association interchangeably?

883


What is output redirection?

882


How can I send mail from within a c program?

770


What is the value of h?

796


What is the difference between struct and union in C?

864


write a c program for swapping two strings using pointer

2302


How do I send escape sequences to control a terminal or other device?

813


What is the difference between array and pointer?

761