q.
recursive function
count(n){
if count<=1
then result = 1;
else
result = count(n-3) + count(n-1)
}
for count(6) ans is:
a. 3
b. 6
c. 9
d. 12
q
#define putchar(%f,c)
int c='d';
putchar(c);
what is the output?
a. ,b. some numbers
c. compiler error
d. segmentation error
q
file a
test()
{ int a; }
file b
void main(void)
{ int b;
b= test();
}
what is the output
a. a
b. b
c. not compiled,error
d. compiles sucessfully,but give linker error
recursive function
count(n){
if count<=1
then result = 1;
else
result = count(n-3) + count(n-1)
}
for count(6) ans is:
a. 3
b. 6
c. 9
d. 12
q
#define putchar(%f,c)
int c='d';
putchar(c);
what is the output?
a. ,b. some numbers
c. compiler error
d. segmentation error
q
file a
test()
{ int a; }
file b
void main(void)
{ int b;
b= test();
}
what is the output
a. a
b. b
c. not compiled,error
d. compiles sucessfully,but give linker error
Comment