#include<stdio.h>
int main(void)
{
char letter;
char *pletter;
pletter = &letter;
printf("%p", &letter;
putchar('\t');
printf("%p", letter);
putchar('\n');
puts("Understand?\nWhat is the right way? it is 4bytes different");
//*allows the value to be altered by the base adderess
//&lets a datatype to value by its adderess from another datatype takes 2 datatypes of same size(bytes)
return 0;
majicbeans
0
Newbie Poster
Recommended Answers
Jump to PostIs there a question somewhere ? Or do you just like to post code?
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
majicbeans
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.