ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
long int size
a) 4 bytes  b) 2 bytes  c) compiler dependent  d) 8 bytes
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 1
Compiler Dependent
 
Is This Answer Correct ?    3 Yes 0 No
Guest
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 2
long integers require twice the space in memory than ordinary 
ints. thus, long integers would occupy four bytes of memory.
 
Is This Answer Correct ?    1 Yes 1 No
Suchita
 
 
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 3
long int occupies 4 bytes in memory.
 
Is This Answer Correct ?    0 Yes 1 No
Jitender Mahender
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 4
integer sizes always depend compiler which are specific to 
different processor platforms.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 5
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 ?    0 Yes 0 No
Asis Kumar Mohanty
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 6
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 ?    1 Yes 0 No
Shruti
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 7
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 ?    0 Yes 0 No
Gopi Nath
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 8
its compiler dependent
 
Is This Answer Correct ?    0 Yes 0 No
Vinnothkumar
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 9
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 ?    1 Yes 0 No
Raja Kumar
 
  Re: long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answer
# 10
compiler dependent
 
Is This Answer Correct ?    0 Yes 0 No
Kamal
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
difference between my-strcpy and strcpy ? Geometric-Software3
Tell about strtok & strstr functions Motorola2
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?  4
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE; Accenture2
write a c programs to do multiplication of two numbers with out using arithmatic operator ?????????? TCS2
hat is a pointer? Assurgent3
What do you mean by team??  2
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.  1
Hi, main() { } Is a user defined function or Built in Functionn Honeywell5
what is the differance between pass by reference and pass by value. Infosys4
different between overloading and overriding  3
what is memory leak?  3
write the program for maximum of the following numbers? 122,198,290,71,143,325,98  3
Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort  3
post new interiew question and aptitude test papers  1
wap in c to accept n number display the highest and lowest value  2
What is memmove? Oracle1
Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me  2
what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>> TCS3
main() { clrscr(); } clrscr(); ME3
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com