Embedded Systems VTU Module 4 quiz questions
Embedded Systems VTU Module 4 quiz questions
Introductionto
378
ObjectiveQuestions
Oxla|ic + Ox18f 78
Embedded Firmware Design and Development
379
++*ptrl;
printf(x\n", ptrl);
(a) Ox0a (b) Ox0b (c) Ox12ff7c d Oxl12ff7d
orl isachar pointer holding the address of the char variable say x which holds the value 10. Assume the
adäress of char variable x as Ox12ff7c. What will be the output of the following piece of code?
*ptrl++;
printf ("%x\n", *ptrl) ;
(a) Ox0b (b) The contents of memory location Ox12ff7d (c) Ox12ff7c
(d) Ox12ff7d
I3 porl' is achar pointer holding the address of the char variable say xwhich holds the value 10. Assume the
address of char variable x as 0x12ff7c. What will be the output of the following piece of code?
*ptrl++;
printf("8x\n", ptrl) ;
(a) Ox0b (b) The contents of memory location Ox12ff7d .(c) Ox12ff7c
aOx12ff7d
k Which of the following is the string termination character?
(a) n' (b) it' (c) 10 (d) la'
5. What is the output of the following piece of code?
strlenl)= calculate s
char name [6] = {'H,E', 'L','L','0,\0}:
printf(W%d",strlen (name) )
chavactcKS u pe
la) 6 (b) 5
16, What is the output of the following piece of code?
(c) 7 mullcha/o
(d) None of theabove Not Mu llch
(d) 8
(a) 0 (b) 2
31. The instruction
const unsigned char* x;
represents:
(a) Pointer to constant data fb) Constant pointer to data
(c) Constant pointer to constant data (d) None of these
32. The instruction
unsigned char* const x;
represents:
(a Pointer to constant data (b) Constant pointer to data
(c) Constant pointer to constant data (d) None of these
33. The instruction