A typecast is used to:

Home | Discussion Forum
Taiyari24Hour

A typecast is used to:



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf("%d", c);
}

3) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = -5;
i = i / 3;
printf("%d ", i);
return 0;
}

4) Consider the following program segment:

 main()
{
int a,b,c;
b=3;
a=2;
a=2*(b++);
c=2*(++b);
}
The correct values are:

5) What is the output of this C code?

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

UP Gk Online Test

taiyari24hour.com

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