list a preprocessor commnd that would make a macro create a

list a preprocessor commnd that would make a macro. create a macro that doubles a number

Solution


#include <stdio.h>

#define double_num(n) \\

printf(#a \" * 2 = \" #b*2)

int main(void) {

printf(\"enter n :\");

int n;

scanf(\"%d\",&n);

double_num(n);

return 0;

}

list a preprocessor commnd that would make a macro. create a macro that doubles a numberSolution #include <stdio.h> #define double_num(n) \\ printf(#a \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site