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

int *p=20 means
int *p;
p=20;
so when you print the value of p definitely you will get the output as 20 because the value of p is 20

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static identifier?

691


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

692


Write a program for Overriding.

671


How do you define a function?

576


Explain how can you avoid including a header more than once?

587






Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5781


Add Two Numbers Without Using the Addition Operator

345


What is else if ladder?

600


What are the advantages of the functions?

600


When should structures be passed by values or by references?

570


What is a program flowchart and how does it help in writing a program?

647


What is the size of enum in bytes?

574


Why header files are used?

631


How can a program be made to print the line number where an error occurs?

636


What are different types of variables in c?

559