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
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)
Explain what is the difference between a free-standing and a hosted environment?
What are the different types of endless loops?
explain what are actual arguments?
What is a good data structure to use for storing lines of text?
What is the right type to use for boolean values in c?
Why can’t we compare structures?
How to define structures? ·
What is a program flowchart?
What does 2n 4c mean?
how to execute a program using if else condition and the output should enter number and the number is odd only...
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
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.
Write a program to check palindrome number in c programming?
Implement bit Array in C.