Forwarded from Disha
What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 5;
m();
printf("x is %d", x);
}
void m()
{
x++;
}
a) 6
b) 5
c) Junk value
d) Compile time error
#include <stdio.h>
void main()
{
register int x = 5;
m();
printf("x is %d", x);
}
void m()
{
x++;
}
a) 6
b) 5
c) Junk value
d) Compile time error
Disha
What will be the output of the following C code? #include <stdio.h> void main() { register int x = 5; m(); printf("x is %d", x); } void m() { x++; } a) 6 b) 5 c) Junk value d) Compile time error
Telegram
Deepali Sharma in Gate CSE (STAY AT HOME)
What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 5;
m();
printf("x is %d", x);
}
void m()
{
x++;
}
a) 6
b) 5
c) Junk value
d) Compile time error
#include <stdio.h>
void main()
{
register int x = 5;
m();
printf("x is %d", x);
}
void m()
{
x++;
}
a) 6
b) 5
c) Junk value
d) Compile time error
Forwarded from Disha
What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
a) Segmentation fault
b) main is called twice
c) main is called once
d) main is called thrice
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
a) Segmentation fault
b) main is called twice
c) main is called once
d) main is called thrice
Disha
What will be the output of the following C code? #include <stdio.h> void main() { register int x = 0; if (x < 2) { x++; main(); } } a) Segmentation fault b) main is called twice c) main…
Telegram
Deepali Sharma in Gate CSE (STAY AT HOME)
What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
a) Segmentation fault
b) main is called twice
c) main…
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
a) Segmentation fault
b) main is called twice
c) main…
Forwarded from Deleted Account
A process P1 is launched for the first time, the O.S doesn’t know the size of which of the following sections?
A
Text
B
Data
C
BSS
D
Heap
A
Text
B
Data
C
BSS
D
Heap
Deleted Account
A process P1 is launched for the first time, the O.S doesn’t know the size of which of the following sections? A Text B Data C BSS D Heap
Telegram
Nehal in Gate CSE (STAY AT HOME)
A process P1 is launched for the first time, the O.S doesn’t know the size of which of the following sections?
A
Text
B
Data
C
BSS
D
Heap
A
Text
B
Data
C
BSS
D
Heap
Forwarded from Deleted Account
If a 10*10 symmetric matrix is stored optimally in the form of a 1-d array the indexing of the matrix starts with [1,1] and that of the 1-d array starts at 0, given that the starting address of the array is 3000, the address of the element at location [5, 8] is ___
ans
ans
Deleted Account
If a 10*10 symmetric matrix is stored optimally in the form of a 1-d array the indexing of the matrix starts with [1,1] and that of the 1-d array starts at 0, given that the starting address of the array is 3000, the address of the element at location [5,…
Telegram
Nehal in Gate CSE (STAY AT HOME)
If a 10*10 symmetric matrix is stored optimally in the form of a 1-d array the indexing of the matrix starts with [1,1] and that of the 1-d array starts at 0, given that the starting address of the array is 3000, the address of the element at location [5…