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 is scope and lifetime of a variable in c?

564


What is volatile variable in c?

649


What are the modifiers available in c programming language?

721


Calculate 1*2*3*____*n using recursive function??

1505


How do I read the arrow keys? What about function keys?

606






What are the different types of errors?

633


Can 'this' pointer by used in the constructor?

605


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

575


What is c mainly used for?

587


How many keywords are there in c?

580


What is typedef example?

607


Why we use conio h in c?

576


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

619


What is the difference between mpi and openmp?

723


What is the difference between far and near in c?

589