Theseus
alive2100@gmail.com
Search
Theseus
ApplicationMemo
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment