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  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Programming-Languages >> C
 
 


 

Back to Questions Page
 
Question
struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??
Rank Answer Posted By  
 Question Submitted By :: Vishnu948923
This Interview Question Asked @   Verifone
I also faced this Question!!   © ALL Interview .com
Answer
The total size would be 5.
Since 'int a' takes 2; 
'char b' takes 1; and
'int *p' takes 2 (Note: Any pointer variable would take 2 bytes)

There is no additional size of 'struct' data structure.
Hence 5 is the value.
 
0
Gagandeep
 
 
Answer
void main()
{
int x,y;
y=&abc.a;
x=(&abc->p+1);
printf("%d",x-y);
}
 
0
Vishnu948923
[No]
 
 
Answer
11
 
0
Manoj Mishra
[No]
 
 
 
Question
what is the difference between. system call and library
function?
Rank Answer Posted By  
 Question Submitted By :: Rofique A
This Interview Question Asked @   CDAC
I also faced this Question!!   © ALL Interview .com
Answer
system calls are provided by the system and are executed in
the system kernel. They are entry points into the kernel and
are therefore NOT linked into your program. These are not
portable calls.
·   Library calls include the ANSI C standard library and
are therefore portable. These functions are linked into your
program.
It is worth noting that, because system calls are part of
the O/S. The program has to make a context switch to the
kernel when they are called and because of this, they have a
high startup overhead. The upside is that the time executing
these routines is assigned to the OS and not the user program.
 
0
Vishnu948923
 
 
Question
explain about storage of union elements.
Rank Answer Posted By  
 Question Submitted By :: Tharak Reddy
This Interview Question Asked @   Bosch
I also faced this Question!!   © ALL Interview .com
Answer
union elements share common memory space
 
4
Saranya
 
 
Question
Difference Between embedded software and soft ware?
Rank Answer Posted By  
 Question Submitted By :: Tharak Reddy
This Interview Question Asked @   Bosch
I also faced this Question!!   © ALL Interview .com
Answer
Embedded software is a program which will interact with the 
physical world. This will be written for a perticular 
machine or device which will be dedicated to that for ever.
example: Embedded software is buil in to electronic systems 
or cars, home appliances, televisions etc

Normal Software is nothing but the information technoly.
 
0
Rajesh Kota
 
 
Question
Difference between fopen() and open()?
Rank Answer Posted By  
 Question Submitted By :: Tharak Reddy
This Interview Question Asked @   Aricent
I also faced this Question!!   © ALL Interview .com
Answer
open() is the function created by the user......... which can be used to perform a specific task....

fopen() belongs to FILES..... this is a in built user defined function which is used to open a file which is already existing with the opening mode or create a new file....and which returns a pointer 

syntax:
   file_ptr=fopen("file name","opening mode");
 
0
Vignesh1988i
 
 
Question
what are the uses of structure?
Rank Answer Posted By  
 Question Submitted By :: B.tharak Reddy
This Interview Question Asked @   HCL
I also faced this Question!!   © ALL Interview .com
Answer
writing program for database management like emplyoee
records....
 
0
Varu
 
 
Answer
arraging element in proper order
 
0
Vivek
 
 
Answer
1.changing d sizeof cursor,
2 clearing d content of screen,
3 drawing graphics shapes 
4 formatting floppy drive
5 interacting with mouse
 
0
Vishnu948923
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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