![]() Related Questions For the following C program:swap(int x, int y){ int temp;temp=x;x=y;y=temp;}main(){int x=2;y=3;swap(x,y);}After calling swap, what are the values x & y?
Static variable will be visible in
A. Function in which they are defined
B. Module in which they are Static variable will be visible in
A. Function in which they are defined
B. Module in which they are defined
C. All the program
D. None A node has the IP address 138.50.10.7 and 138.50.10.9. But it is transmitting data from node1 to node 2only.The reason may be
A. A node cannot have more than one address
B. class A should have second octet different
C. class B should have second octet different
D. All of the above Which of the following is not true about C++
A. Code removable
B. Encapsulation of data and code
C. Program easy maintenance
D. Program runs faster For the following C program
struct base {int a,b;
base();
int virtual function1();}
struct derv1:base
{int b,c,d;
derv1()
int virtual function1();}
struct derv2 : base
{int a,e;
}
base::base()
{a=2;b=3;
}
derv1::derv1()
{b=5;
c=10;d=11;}
base::function1()
{return(100);
}
derv1::function1()
{
return(200);
}
main()
base ba;
derv1 d1,d2;
printf("%d %d",d1.a,d1.B.
Output of the program is:
A. a=2;b=3;
B. a=3; b=2;
C. a=5; b=10;
D. none For the following C program
struct {
int x;
int y;
}abc;
x cannot be accessed by the following
1) abc-->x;
2) abc[0]-->x;
3) abc.x;
4) (abc)-->x;
A. 1, 2, 3
B. 2 & 3
C. 1 & 2
D. 1, 3, 4 Automatic variables are destroyed after function ends because
A. Stored in swap
B. Stored in stack and popped out after function returns
C. Stored in data area
D. Stored in disk Latest Answer : ${DESTDIR} ... Link between program and outside world in ms -windows
A. Device driver and hardware disk
B. Application and device driver
C. Application and hardware device
D. None Latest Answer : We can do it by sending the HANGUP signal to that process ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||