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 / santhi perumal
We are assigning 20 to *p. Which means we are assigning the
address 20 to p. when you want to print the address of the
pointer variable we have to print just p not *p. if you want
to print the value stored in the particular address we need
to print like *p. in this case we are printing p so it will
give the address 20 to it.
| Is This Answer Correct ? | 31 Yes | 5 No |
Post New Answer View All Answers
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
what is ur strangth & weekness
What are global variables and how do you declare them?
What is the easiest sorting method to use?
What is a static function in c?
Why use int main instead of void main?
Explain union. What are its advantages?
What is the default value of local and global variables in c?
What are the types of operators in c?
What are the uses of a pointer?
What is adt in c programming?
Is python a c language?
What is the difference between abs() and fabs() functions?
What is a pointer and how it is initialized?
What is spaghetti programming?