|
|
What is the output of the Program?
main() { struct t { int i; } a,*p=&a; p->i=10; printf("%d",(*p).i); } - 10
- 12
- 13
- None of the Given Answers
zzz.c file ---------- /* This is zzz.c file*/ /*printf("tellapalli");*/ abc.c file ---------- main() { #include"zzz.c" printf("Tellapalli"); }
- Yes
- No
IN BINARY TREE IF PARENT HAS INDEX i then its left and right child occurs at: - 2i and 2i+1
- 2i and 2i -1
- 2i - 1 and 2i+1
- None of the Given Answers
complete graph has - n vertices and n(n-1)/2 edges
- n vertices and (n-1)/2 edges
- n- 1 vertices and n(n-1)/2 edges
- None of the Given Answers
Statistical time division multiplexing provides: - Statistics of tdm signal
- Provision to multiplex analog signal
- Improved time sharing efficiency
- Static routing b/w nodes
1. char buffer[]="susan"; Which of the below statement is true - Individual characters can be changed.
- Buffer[7] is not accesible.
- none of the above.
.#include #include void main() { int ctr=0; clrscr(); switch(ctr) { case 0: ctr++; case 1: ctr++;
default : ctr++; }; printf("%d",ctr); getch(); } What is the output of the code.
- ctr=2;
- ctr=3;
- ctr=1;
- Compiler error;
#include #include void main() { void fun(int,int); int i ,j; i=2,j=3; fun(i++,j++); printf("%d%d",i,j); getch(); } void fun(int i,int j) { i++,j++; } Question : what is the output ? - i=2,j=3;
- i=3,j=4;
- i=5,j=6;
- compiler error.
#include #include void main() { char *s="susan"; clrscr(); printf(s); getch(); }
- compiler error;
- s;
- susan;
- 5;
fun( int x, int y) { x =3; y =2; }
main() { int i; fun( i,i); printf("%d",i); }
Question :if the value is 2 then the calling mechanism is
- Call by name
- Call by refernce
- Call by value
- None of the Given Answers
|
|
|