Answer Posted / vishnu
int main()
{
int *ptr;
ptr = (int *)0x2000;
*ptr = 10;
printf("%d", *ptr);
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the use of define in c?
What is variable and explain rules to declare variable in c?
What are bitwise shift operators in c programming?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
How do I create a directory? How do I remove a directory (and its contents)?
Is exit(status) truly equivalent to returning the same status from main?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Explain what is meant by 'bit masking'?
what is recursion in C
Is main is user defined function?
How do shell structures work?
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
What is the best way of making my program efficient?
How can I manipulate individual bits?