Interview Questions and Answers :: HCL Technologies
Home > Experience Archives > HCL Technologies > Interview Question Set 3 > Discussion
8. What will be the output
#include
#define CPTR char *
typedef char * CHPTR;
int main(){
CPTR c1, c2;
CHPTR c3, c4;
printf("%d %d %d %d", sizeof(c1), sizeof(c2),sizeof(c3),sizeof(c4));
return 0;
}
#define CPTR char *
typedef char * CHPTR;
int main(){
CPTR c1, c2;
CHPTR c3, c4;
printf("%d %d %d %d", sizeof(c1), sizeof(c2),sizeof(c3),sizeof(c4));
return 0;
}
Answer:
No Discussion on this question yet!
No Discussion on this question yet!