Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define kOID "1.3.6.1.4.1.1.1.2.4.0"
- char* p = kOID;
- const char* p = kOID;
- char* p = kOID;
- char* const p = kOID; // compilation error if you change the pointer
- const char* p = kOID; // compilation error if you change the pointed data
- const char* const p = kOID; // compilation error if you change either one of them
- const char *pointer = kOID;
- const char *pointer = "1.3.6.1.4.1.1.1.2.4.0";
- #include <header.h>
- char * s = kOID;
- const char * s = kOID;
- a.c: In function βmainβ:
- a.c:10:5: error: assignment of read-only location β*sβ
- const char some_string[] = kOID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement