Give the output for the following program.
#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d\n",x,y);
}
Answers were Sorted based on User's Feedback
What is malloc and calloc?
What are logical errors and how does it differ from syntax errors?
coding for Fibonacci.?
Write a code to remove duplicates in a string.
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none
What is the purpose of #pragma directives in C?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Explain what is the benefit of using an enum rather than a #define constant?
How to convert decimal to binary in C using recursion??
Are the expressions * ptr ++ and ++ * ptr same?
write a c program to find the roots of a quadratic equation ax2 + bx + c = 0
11 Answers CSC, St Marys, TATA,
how to set Nth bit of variable by using MACRO