Search

Theseus

If I declare # define, I can use constant value all local

Source Code

#include <stdio.h>

void print();

int main()
{
#define A 1
const int B=2;
return 0;
}
void print()
{
const int A = 3;  //1=3 Error will occur
A =4;
const int B = 4;
}

No comments:

Post a Comment