c - Playing with pointer in c language
问题描述
Could we point and address specific place in memory using pointer in c language? Then modify it from another file (ANOTHER PROGRAM) and view it from any where. Like :
Modifying it :
#include<stdio.h>
void main(){
int *p;
p= 12345678;
scanf("%d",p);
}
Viewing it :
#include<stdio.h>
void main(){
int *p;
p= 12345678;
printf("%d", *p);
}
解决方案
No. Each process in your operating system has its own address space.
Processes can communicate, using the channels provided by the operating system.
Look into IPC, aka inter process communication, if you're interested in knowing more about it.
推荐阅读
- typescript - 如果函数将超类作为其返回类型,TypeScript 可以返回子类吗?
- selenium - Docker 和 Selenium 网格错误。转发新会话时出错 空池
- reactjs - 使用 React Router 切换到不同组件时出现随机内存泄漏错误
- excel - 数组公式中的 IFERROR="" 未输入空白
- python - 从 ascii 表中选择 5 个随机数据元素
- java - 根据特定输入动态生成字符串的代码
- c++ - 如何解析列存储格式的 XML 文件?
- python - 在 pythonanywhere.com 上使用 PyRFC 连接到 SAP
- javascript - formArray 循环不完整的值
- javascript - 取消预定的网络音频