Learners Only
Showing posts with label
macro
.
Show all posts
Showing posts with label
macro
.
Show all posts
Monday, 21 November 2011
Predict the output or error(s) for the following:
#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
Answer:
64
Explanation:
Read more »
Sunday, 30 October 2011
Predict the output or error(s) for the following:
#define int char
main()
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Answer:
sizeof(i)=1
Explanation:
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)