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


Please Help Members By Posting Answers For Below Questions

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)

1860


Explain what is the difference between a free-standing and a hosted environment?

874


What are the different types of endless loops?

814


explain what are actual arguments?

817


What is a good data structure to use for storing lines of text?

807


What is the right type to use for boolean values in c?

790


Why can’t we compare structures?

1030


‎How to define structures? · ‎

831


What is a program flowchart?

800


What does 2n 4c mean?

963


how to execute a program using if else condition and the output should enter number and the number is odd only...

1915


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

795


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2527


Write a program to check palindrome number in c programming?

771


Implement bit Array in C.

869