Forwarded from Deleted Account
int foo(int ,int );
int a;
int ar[4] = { 1,0, 2,3};
main()
{
a = 0;
foo(ar[a], ar[ar[a]]);
printf("%d,%d ,%d,%d ", ar[0] , ar[1] ,ar[2] , ar[3]);
}
foo(int x, int y)
{
x= x+1;
y=y+1;
x=x+1;
y=y+1;
ar[1] =50;
}
What value will be printed by the program if parameter passed by call by name?
1,50,2,3
3,50,2,3
3,50,3,4
3,2,2,3
ans
int a;
int ar[4] = { 1,0, 2,3};
main()
{
a = 0;
foo(ar[a], ar[ar[a]]);
printf("%d,%d ,%d,%d ", ar[0] , ar[1] ,ar[2] , ar[3]);
}
foo(int x, int y)
{
x= x+1;
y=y+1;
x=x+1;
y=y+1;
ar[1] =50;
}
What value will be printed by the program if parameter passed by call by name?
1,50,2,3
3,50,2,3
3,50,3,4
3,2,2,3
ans
Computer Science quiz
int foo(int ,int ); int a; int ar[4] = { 1,0, 2,3}; main() { a = 0; foo(ar[a], ar[ar[a]]); printf("%d,%d ,%d,%d ", ar[0] , ar[1] ,ar[2] , ar[3]); } foo(int x, int y) { x= x+1; y=y+1; x=x+1; y=y+1; ar[1] =50; } What value will be printed by the program if…
Telegram
Nehal in Gate CSE (STAY AT HOME)
int foo(int ,int );
int a;
int ar[4] = { 1,0, 2,3};
main()
{
a = 0;
foo(ar[a], ar[ar[a]]);
printf("%d,%d ,%d,%d ", ar[0] , ar[1] ,ar[2] , ar[3]);
}
foo(int x, int y)
{
x= x+1;
y=y+1;
x=x+1;
y=y+1;
ar[1] =50;
}
What value will be printed by the program if…
int a;
int ar[4] = { 1,0, 2,3};
main()
{
a = 0;
foo(ar[a], ar[ar[a]]);
printf("%d,%d ,%d,%d ", ar[0] , ar[1] ,ar[2] , ar[3]);
}
foo(int x, int y)
{
x= x+1;
y=y+1;
x=x+1;
y=y+1;
ar[1] =50;
}
What value will be printed by the program if…
Forwarded from Deleted Account
Suppose a link is capable of carrying 2 Mbps, and the round trip time of the link is 3 msec. If a node at one end of the link is sending packets to the other end using a stop and wait protocol, and the packets are all 2000 bits long, what is the maximum possible utilization of the link? [ Write the ceil value of answer]
ans
ans
Computer Science quiz
Suppose a link is capable of carrying 2 Mbps, and the round trip time of the link is 3 msec. If a node at one end of the link is sending packets to the other end using a stop and wait protocol, and the packets are all 2000 bits long, what is the maximum possible…
Telegram
Nehal in Gate CSE (STAY AT HOME)
Suppose a link is capable of carrying 2 Mbps, and the round trip time of the link is 3 msec. If a node at one end of the link is sending packets to the other end using a stop and wait protocol, and the packets are all 2000 bits long, what is the maximum possible…