#include<iostream>
using namespace std;
#include<stdio.h>
int main()
{
int a=5;// khai bao bien a co gia tri bang 5
void *b; // khai bao con tro b vo kieu
b=&a;
(*(int *)b)--;
printf("gia tri ben a la: %d",a);
printf("\ndia chi bien a la: %p",&a);
printf("\n gia tri con tro b: %p",*(int *)b);
printf("\ndia chi con tro b la: %p",&b);
printf("\n mien gia tri con tro b la :%p",b);
cout<<endl;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.