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


long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

Answers were Sorted based on User's Feedback



long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / guest

Compiler Dependent

Is This Answer Correct ?    112 Yes 18 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / guest

integer sizes always depend compiler which are specific to
different processor platforms.

Is This Answer Correct ?    34 Yes 5 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / asis kumar mohanty

it is compiler and environment dependent.
turbo compiler under c environment takes 4 bytes for
longint.
turbo compiler under unix environment takes 8 bytes.

Is This Answer Correct ?    22 Yes 9 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / raja kumar

yes, i too agree it is compiler dependent. But, can anyone
explain, why it is compiler dependent?

If it is a 16 bit compiler, then the size of int is 2
bytes. If it is a 32 bit compiler, then the size of int is
4 bytes. Is there is any reason behind this? It will be
helpful if anyone clarifies this?

Is This Answer Correct ?    15 Yes 3 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / jitender mahender

long int occupies 4 bytes in memory.

Is This Answer Correct ?    38 Yes 27 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / kamal

compiler dependent

Is This Answer Correct ?    14 Yes 3 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / shruti

yes its compiler dependant..
these are figures with respect to only one compiler..
it may change for others.

but it genrally takes 6 bytes space..

float 4 bytes..
double 8 bytes..

Is This Answer Correct ?    17 Yes 7 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / vinnothkumar

its compiler dependent

Is This Answer Correct ?    15 Yes 5 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / gopi nath

Yes its obsolutely depend upon the the compiler.
turbo compiler in c environment it takes 4 bytes
but in unix environment it takes 8 bytes.......

Is This Answer Correct ?    10 Yes 5 No

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes ..

Answer / dhiraj

Its always complier depended and the reason for this is
that int is always map to the word size of that processor.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C Interview Questions

What is sizeof in c?

0 Answers  


What is difference between structure and union?

0 Answers  


What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”ORACL”; char c=’E’; prinf(“%s\n”,strcat(char_arr,c)); } a:oracle b. oracl c.e d.none

2 Answers   Oracle,


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

0 Answers  


what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


Tell me what is the purpose of 'register' keyword in c language?

0 Answers  


What is a far pointer?What is the utility?

4 Answers  


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

7 Answers   Infosys,


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

4 Answers   Tieto,


Why do we use main function?

0 Answers  


declare afunction pointer to int printf(char *)?

1 Answers   HCL,


a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'

2 Answers  


Categories