213 views
0 votes
0 votes
#include<stdio.h>
#include<stdarg.h>
void display(char *s, ...);
void show(char *t, ...);

int main()
{
    display("Hello", 4, 12, 13, 14, 44);
    return 0;
}
void display(char *s, ...)
{
    show(s, ...);
}
void show(char *t, ...)
{
    int a;
    va_list ptr;
    va_start(ptr, s);
    a = va_arg(ptr, int);
    printf("%f", a);
}

 

  A.
Error: invalid function display() call
  B.
Error: invalid function show() call
  C.
No error
  D.
Error: Rvalue required for t

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
`JEET asked Nov 28, 2018
313 views
#include<stdio.h #include<stdlib.h int main(int argc, char argv) { int i, j=0; for(i=0; i<argc; i++) j = j+atoi(argv[i]); printf("%d\n", j); return 0; }
0 votes
0 votes
0 answers
2
`JEET asked Nov 28, 2018
970 views
#include<stdio.h int main() { char huge *near *far *ptr1; char near *far *huge *ptr2; char far *huge *near *ptr3; printf("%d, %d, %d\n", sizeof( ptr1), sizeof(ptr2), size...
2 votes
2 votes
0 answers
3
0 votes
0 votes
4 answers
4
Sanjay Sharma asked Jun 7, 2016
1,972 views
If a= 10 then what will be the value of b in a C language code.If b= a++ + a++ + a++;.30.23.33.Undefined behaviour