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

How can I avoid the abort, retry, fail messages?

663


Is null always defined as 0(zero)?

615


How many header files are in c?

553


Write a program to reverse a string.

642


Why do we use header files in c?

584






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1479


Do you know null pointer?

611


How do you list a file’s date and time?

635


Why is not a pointer null after calling free?

598


how can I convert a string to a number?

597


Is c language still used?

537


What is the meaning of typedef struct in c?

594


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

563


What is a protocol in c?

559


Explain how can I make sure that my program is the only one accessing a file?

627