What will the SWAP macro in the following program be expanded to on - ProProfs Discuss
Advertisement

What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile?#include#define SWAP(a, b, c)(c t; t=a, a=b, b=t)int main(){ int x=10, y=20; SWAP(x, y, int); printf("%d %d\", x, y); return 0;}

What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile?#include#define SWAP(a, b, c)(c t; t=a, a=b, b=t)int main(){ int x=10, y=20; SWAP(x, y, int); printf(&quot;%d %d\&quot;, x, y); return 0;}<br/>

Change Image    Delete

Asked by JawaharGanesh, Last updated: Jan 02, 2025

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

JawaharGanesh

JawaharGanesh

JawaharGanesh
JawaharGanesh

Answered Aug 22, 2018

Not compile
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.