🤔 No result found

👉 Don't loose hope, Try out below methods

Ask on Telegram
  • 💡 Search Tips
  • ➡️ Type question from start
  • ➡️ Use unique words from question
  • ❌ Don't search full question
Telegram Group 🔥🔥🔥 Get answers in minutes
Questions answered : 48 /50
Guy
Guy
Guy
Guy
Guy
+ 4981 more
Verified Answer verified

What will be the output of the program
#include<stdio.h>
#include<stdarg.h>
void display(int num, ...);

int main()
{
display(4, 'A', 'B', 'C', 'D');
return 0;
}
void display(int num, ...)
{
char c, c1; int j;
va_list ptr, ptr1;
va_start(ptr, num);
va_start(ptr1, num);
for(j=1; j<=num; j++)
{
c = va_arg(ptr, int);
printf("%c", c);
c1 = va_arg(ptr1, int);
printf("%d\n", c1);
}
}

🗓 Apr 3, 2023

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Caroline 🌐 India
Nice website
Was this answer helpful?
votes
Rachel 🌐 India
Answer is fine but where is solution?
Was this answer helpful?

Was your question answered?

Thanks for the feedback! ✅

Want to get famous? 📸

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

Just Automated Logo

© 2017-2022 Foxoyo™
All rights reserved.

Facebook Connect with us