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
Explain #pragma statements.
Why is it important to memset a variable, immediately after allocating memory to it ?
Explain how do you determine whether to use a stream function or a low-level function?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What does typeof return in c?
What are the basic data types associated with c?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
hi send me sample aptitude papers of cts?
What is use of pointer?
What is the purpose of 'register' keyword in c language?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
FILE PROGRAMMING
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the acronym for ansi?
What is #include stdlib h?