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


Please Help Members By Posting Answers For Below Questions

What are pointers?

831


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

799


What are the disadvantages of c language?

829


What is #define size in c?

837


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4960


What is a volatile keyword in c?

869


Why is %d used in c?

730


Is calloc better than malloc?

770


what value is returned to operating system after program execution?

1798


How does sizeof know array size?

822


Where are c variables stored in memory?

783


Can I initialize unions?

795


How can my program discover the complete pathname to the executable from which it was invoked?

839


What is the equivalent code of the following statement in WHILE LOOP format?

1067


Should a function contain a return statement if it does not return a value?

802