HCU Campus
Test pattern consists of four subjects.The paper having 100 marks. 1) C - 42 marks(each question carries 3 or 2 marks on objective and descriptive) 2)Data Structures - 18 marks (only objective 2 or 3 marks) 3)Operating Systems - 30 marks (it consists objective and descriptive,some problems on memory management) 4)Computer Networks-10 marks(both objective and descriptive) The following questions are given below. 1)what is output for the following program.#includemain(){int *p,*q,i;p=(int *)100;q=(int *)200;i=q-p;printf("%d",i);}a)100 b)25 c)0 d)compile errorAns : b) 25 2)what is output for the following program. #include#define swap(a,b) temp=a,a=b,b=temp;main(){int a=5,b=6;int temp;if(a>b)swap(a,b);printf("a=%d,b=...