Telegram Group 🔥🔥🔥 Get answers in minutes
Questions answered : 48 /50
+ 4981 more
Answer verified

Point out the error if any in the following program (Turbo C)
#include<stdio.h>
#include<stdarg.h>
void display(int num, ...);

int main()
{
display(4, 'A', 'a', 'b', 'c');
return 0;
}
void display(int num, ...)
{
char c; int j;
va_list ptr;
va_start(ptr, num);
for(j=1; j<=num; j++)
{
c = va_arg(ptr, char);
printf("%c", c);
}
}

🗓 Jun 29, 2021

View Answer

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Alexandra 🌐 India
Students helping students, nice idea
Was this answer helpful?
votes
Ashley 🌐 India
How?
Was this answer helpful?

Was your question answered?

Want to get famous? 📸

Answer question and get 🤩 high-lighted on our homepage.

© 2017-2022 Foxoyo™
All rights reserved.

Facebook Connect with us