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



Give the output for the following program. #define STYLE1 char main() { type..

Answer / syamkumarm

-1 -1

Is This Answer Correct ?    4 Yes 1 No

Give the output for the following program. #define STYLE1 char main() { type..

Answer / rh

Please explain how ?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain heap and queue.

0 Answers   Aricent,


What are the different file extensions involved when programming in C?

0 Answers  


how to find out the inorder successor of a node in a tree??

2 Answers   TCS, Yahoo,


What is property type c?

0 Answers  


How macro execution is faster than function ?

0 Answers   Wipro,






2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

0 Answers  


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....

2 Answers  


list the no of files created when c source file is compiled

9 Answers   TCS,


How can variables be characterized?

0 Answers  


Function calling procedures? and their differences? Why should one go for Call by Reference?

0 Answers   ADP,


Identify the operators that is not used with pointer a. && b. # c. * d. >>

2 Answers  


Categories