Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

. 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 / bipin chandra sai.s

ans is none,bcoz b has been assigned address &[2],but it
has been asked that ans for b[-1],so the location -1 is not
there,we have locations from 0,1,2,3..,so none is the ans

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use any name in place of argv and argc as command line arguments?

1046


What is .obj file in c?

1043


Explain can static variables be declared in a header file?

1121


how to construct a simulator keeping the logical boolean gates in c

2226


Why can arithmetic operations not be performed on void pointers?

1004


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

6233


What are the features of the c language?

1057


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2426


How many bytes are occupied by near, far and huge pointers (dos)?

1133


What is the acronym for ansi?

1015


What are predefined functions in c?

1052


Do you know the use of fflush() function?

1029


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1144


Why are algorithms important in c program?

1085


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1220