What will be the output of the program in 16 bit platform (Turbo C under DOS)? Home | Discussion Forum

Taiyari24Hour

What will be the output of the program in 16 bit platform (Turbo C under DOS)?

#include<stdio.h>
int main()
{
int fun();
int i;
i = fun();
printf("%d\n", i);
return 0;
}
int fun()
{
_AX = 1990;
}



View More Related Question

1) What will be the output of the program?

#include<stdio.h>
int fun(int);
int main()
{
float k=3;
fun(k=fun(fun(k)));
printf("%f\n", k);
return 0;
}
int fun(int i)
{
i++;
return i;
}

2) Point out the error in the program

   f(int a, int b)
{
int a;
a = 20;
return a;
}

3) What will be the output of the program?

#include<stdio.h>
int fun(int, int);
typedef int (*pf) (int, int);
int proc(pf, int, int);
int main()
{
printf("%d\n", proc(fun, 6, 6));
return 0;
}
int fun(int a, int b)
{
return (a==b);
}
int proc(pf p, int a, int b)
{
return ((*p)(a, b));
}

4) Which library function returns number of seconds elapsed beyond a designated base time?

5) The keyword used to transfer control from a function back to the calling function is

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.