Tuesday, 8 October 2013

Download Code
MACRO POINTS (for the below program)

1. You can use MAX instead of writing 1000 in the program

2. Even if you have to make changes to the maximum value, you only have to change at one place i.e; in the macro declaration. Thus, saving time and effort to manually change maximum value everywhere.

3. The value of MAX is constant
   * @author    Maven Scientists (http://mavenscientists.com) 
   * @email    info@mavenscientists.com
#include <stdio.h>
#define MAX 1000 //Macro defined
int main()
char array[MAX];
printf("\n%d", MAX);
return 0;

Get Ebooks delivered to your email id


Subscribe to our channel


Powered by Blogger.

Home | Contact Us | DMCA | Terms of Service | Privacy | Advertise

Maven Scientists