C Programming - Pointers - Discussion
Discussion Forum : Pointers - Point Out Correct Statements (Q.No. 3)
3.
Which of the statements is correct about the program?
#include<stdio.h>
int main()
{
float a=3.14;
char *j;
j = (char*)&a;
printf("%d\n", *j);
return 0;
}
Discussion:
50 comments Page 4 of 5.
Dilip said:
1 decade ago
Static and global variables are stored in Data section of memory.
Vishwas S said:
1 decade ago
Can anyone please explain how 3.14 is stored in a computer?
Ganga said:
9 years ago
Why we can write char*. Why we can write?
Please explain.
Please explain.
Siri said:
9 years ago
but we are printing %d with %d how ASCII value will print?
Gyni said:
1 decade ago
What is heap? can you segment and static memory storage.
Harry said:
1 decade ago
Can anyone please explain ? How did this answer come ?
Lalit Singh said:
1 decade ago
The answer to this question is wrong it's option D.
Sk rashid ali said:
1 decade ago
If we replace %d with %u its giving an addrress.
Mukesh said:
1 decade ago
Where the global variable stored in c language?
Durai pandian said:
1 decade ago
Please whats the meaning of the -61 as output.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers