Anonymous
BAN USER- 0of 0 votes
Answers#include<stdio.h> #include<stdlib.h> int main(){ union A { long int y[5]; union B{ double g; union C{ int k; union D{ char ch; int x[5]; } s; }a; }b; }*p; p=(union A * ) malloc ( sizeof (union A)); p->b.a.k=15; printf("%d %d \n",p->b.a.s.x[0],p->y[0]); }
output : 15 15
- Anonymous in United States
plz explain with working| Report Duplicate | Flag | PURGE
Adobe - 0of 0 votes
Answers//what will be the output of the program if characters 'hello world' and enter are supplied to the program ?
#include<stdio.h> int main() { void fun(); fun(); printf("\n"); return 0; } void fun() { char c; if((c=getchar())!= '\n') fun(); printf("%c ", c); }
output : d l r o w o l l e h
- Anonymous in United States
(plz Explain...)| Report Duplicate | Flag | PURGE
Adobe - 0of 0 votes
Answersimplement the following interface in java :
- Anonymous in India
public interface ExamImmutableQueue<E>{
public ExamImmutableQueue<E>enqueue(E e); /*returns the queue that adds an item into the tail of this queue without modifying this queue.
when this queue represents the queue(2,1,2,2,6)and we enqueue the value 4 into this queue.
this method return a new queue (2,1,2,2,6,4) and this objects still represents the queue(2,1,2,2,6)
*/
}| Report Duplicate | Flag | PURGE
WorksApp Java
@ Lucy : great explanation ...!!!
- Anonymous September 15, 2012