C Programming Multiple Choice Questions And Answers
Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:
List of Programming Full Forms
int main()
{
int a = 5;
int b = 10;
{
int a = 2;
a++;
b++;
}
printf("%d %d", a, b);
return 0;
}
- 6,11
- 11 6
- 6 10
- 5 11
- Char str
- char *str;
- String str;
- float I;
#include
#include
int main()
{
void display(char *s, int num1, int num2, ...);
display("Hello", 4, 2, 12.5, 13.5, 14.5, 44.0);
return 0;
}
void display(char *s, int num1, int num2, ...)
{
double c;
char s;
va_list ptr;
va_start(ptr, s);
c = va_arg(ptr, double);
printf("%f", c);
}
- Error: in va_start(ptr, s);
- Error: too many parameters
- Error: invalid arguments in function display()
- No error