answersLogoWhite

0

Write a program in C using macros?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

#include <stdio.h>

#define HELLO(s) printf ("%s\n", s)

#define MAIN main (void) { HELLO ("Hello world!"); return 0; }

MAIN

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you write a c program to calculate the circumference of the circle using macros with parameters?

// macro definitions: #define PI 3.14159265358979323846 #define CIRCUMFERENCE(radius) (2. * (radius) * PI) // use this as in CIRCUMFERENCE(21.34)


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a c program for matrix addition using function?

#include&lt;


How do you write a c program to design calculator using loop?

Wr


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


Write a c program to generate student mark details using union and find total and average and grade?

write a c program to display marks,total,average,grade using union


How do you write a program a bout rotor cipher using C?

Just fart!


How do you write c program to perform sum of elements of matrix using pointers with functions?

i cant write


What does the hashtag mean in programming?

In programming, specifically in C and C++, the hashtag (#) is used to include files into the main program and to create macros.


How do you write a program in C using the fprint and fscan functions?

By using those two functions in your code.