| 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.  |
| Gagandeep |
| |
| |
| Answer | void main()
{
int x,y;
y=&abc.a;
x=(&abc->p+1);
printf("%d",x-y);
}  |
| Vishnu948923 [No] |
| |
| |
| Answer | 11  |
| 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.
 |
| 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  |
| 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.  |
| 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");  |
| 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....  |
| Varu |
| |
| |
| Answer | arraging element in proper order  |
| 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  |
| Vishnu948923 |
| |
| |
|
| |
|
Back to Questions Page |