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 / valli
int *p=20;
means
int *p;
p=20;
so the address of p is 20
printf("%d",p);
it prints 20 because now the base address of p is 20
even if we print as
printf("%u",p);
the o/p will be 20
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of main( ) in c language?
Define the scope of static variables.
What is hungarian notation? Is it worthwhile?
Did c have any year 2000 problems?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is the difference between functions abs() and fabs()?
Is a pointer a kind of array?
Can true be a variable name in c?
When a c file is executed there are many files that are automatically opened what are they files?
What are global variables?
Can we declare variables anywhere in c?
Why doesnt this code work?
What is the difference between the = symbol and == symbol?
What is pointer to pointer in c with example?
How is a structure member accessed?