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 / thunder

GIVES THE ERROR DURING COMPILATION.
*P means IT CAN STORE ADDRESS NOT ANY INTEGER VALUE.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure padding in c?

621


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1258


What is the purpose of macro in C language?

657


Where in memory are my variables stored?

631


Linked lists -- can you tell me how to check whether a linked list is circular?

639






Why doesn't C support function overloading?

1607


using for loop sum 2 number of any 4 digit number in c language

1728


what is a function method?give example?

1910


What are the primitive data types in c?

568


Explain a pre-processor and its advantages.

619


explain how do you use macro?

664


Explain the use of #pragma exit?

691


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

603


Explain argument and its types.

595


Explain how do you convert strings to numbers in c?

591