Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
April 10, 2024
Write a c program to demonstrate pre-processor directives Conditional Compilation
#include
#define A 50 #define B 7 int main() { int result; #if(A>B) result=A+B; printf("sum=%d",result); #else result=A-B; printf("diff=%d",result); #endif return 0; }
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C