|
|
Size of(int) - always 2 bytes
- Depends on compiler that is being used
- always 32 bits
- can't tell
Variables of fuction call are allocated in
- registers and stack
- registers and heap
- stack and heap
- Hard disk
void f(int *p){ static val=100; val=&p; } main(){ int a=10; printf("%d ",a); f(&a); printf("%d ",a); } what will be out put?
- 10,10
- 100,10
- 10,100
- 100,100
struck a{ int x; float y; char c[10]; } union b{ int x; float y; char c[10]; } which is true?
- size of(a)!=sizeof(b);
- size of(a)=sizeof(b);
- 2*size of(a) =sizeof(b);
- size of(a) = 2 * sizeof(b);
3 flipflops are connected so that after 0 to 5 count occured next number is zero. So what is the counter? - mod 6 counter
- mod 3 counter
- mod 4 counter
- None of the above
Fastest IPC mechanism is
- shared memory
- pipes
- named pipes
- Semaphores
#define SUM(a,b) a+b main() { a=2; b=3; x=SUM(a,b)*2; printf("x=%d\n",x); }
- 8
- 5
- 6
- 4
The fastest memory is - DRAM
- ROM
- SRAM
- Main memory
Programing exceptions are - Asynchronous
- synchronous
- None
- Errors
DSP which architecture is used
- MIMD
- SIMD
- Nueman
- Harvard Architecture
|
|
|