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 / sangram
p is a pointer and it holds address.
we are assigning 20 to p;it means pointer p points the value pointed by address 20.
so to show the value on address 20 you have give *p
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between c &c++?
Tell me the use of bit field in c language?
what do the 'c' and 'v' in argc and argv stand for?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Explain pointer. What are function pointers in C?
When should structures be passed by values or by references?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What type is sizeof?
What is the use of a ‘ ’ character?
What is mean by data types in c?
Why is c known as a mother language?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
how we can make 3d venturing graphics on outer interface
Can the size of an array be declared at runtime?