int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation.
Answer Posted / ankit
it will show compiler error as we are trying to assign integer value to pointer variable.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are control structures? What are the different types?
What is a macro?
Write a program for Overriding.
Why does not c have an exponentiation operator?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
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
Do character constants represent numerical values?
What are void pointers in c?
What is the difference between break and continue?
Explain what is the benefit of using an enum rather than a #define constant?
Why is #define used?
a program that can input number of records and can view it again the record
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is #line used for?
Explain what is a const pointer?