LINUX执行C程序时提示段错误 什么意思?一般段错误是什么引起的?
发布网友
发布时间:2022-04-27 01:26
我来回答
共4个回答
热心网友
时间:2023-11-15 19:28
一般是因为bufer overflow引起的,比如数组读取范围以外的内存
热心网友
时间:2023-11-15 19:28
我印象,漏&号就会出这种错。
例如:
int x;
应当写:
scanf("%d",&x);
若写漏&号:
scanf("%d",x);
就会出这种错。
很久没用linux了。
热心网友
时间:2023-11-15 19:29
那个有两种可能:
1、你的&符号忘了。
2、你的指针没有指向可以利用的空间。
。。。。。。
一时想不起来太多,你把程序贴出来。
热心网友
时间:2023-11-15 19:29
▲Linux/Unix环境编程电子资料汇总:
Understanding The Linux Kernel 第一版
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157562
Understanding The Linux Kernel 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157563
Understanding The Linux Kernel 第三版
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157565
Linux内核精要
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146024
Understanding the Linux Kernel - 理解Linux内核
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=152408
Linux内核源代码情景分析 中文版 (上下册)
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=158240
O'Reilly Bash Cookbook
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=147327
101个超酷Shell脚本
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157380
Bash快速参考
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157340
Bash Beginners Guide
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=158089
Advanced Bash-Scripting Guide
http://bbs.topsage.com/dispbbs.asp?boardID=117&ID=174450
Perl入门及高级编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146158
Perl语言编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146157
Perl指南
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146865
Perl编程思想
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146770
Perl - The Complete Reference
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174447
O'Reilly 精通Perl编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=156728
O'Reilly Perl and XML
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=159162
Perl 5 21天自学教程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=158765
Perl编程 24学时教程 中文版PDF
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=175155
Effective Perl Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174446
O'Reilly Advanced Perl Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174444
GENOMIC Perl (PDF文字版)
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=172830
轻松学习Linux编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146075
Linux应用开发基础
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=148045
Linux 网络编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=145846
Python简明教程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146387
Wrox出版 Beginning Python
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=172824
Apress出版 Beginning Python 从入间到精通
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=171769
Text Processing in Python (CHM版)
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=175013
O'Reilly Learning Python 第三版
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174777
O'Reilly Python & XML
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174517
O'Reilly Python Standard Library
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174501
Python 2.1 宝典
http://bbs.topsage.com/dispbbs_119_171351_1.html
Wrox Professional Python Frameworks
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=176749
The Definitive Guide to django - Python Web编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=173175
Unix编程艺术 The Art of Unix Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146764
Linux编程*
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146756
A Practical Guide to Linux Commands Editors and Shell Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146740
Linux案头参考(第二版)
http://bbs.topsage.com/dispbbs.asp?boardID=117&ID=146272
Linux与Unix Shell编程指南
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=146762
Linux Shell Scripting with Bash
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157511
Unix Shell Programming(第三版)
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157391
Linux Debugging And Performance Tuning
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157467
Linux系统分析与高级编程技术
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157106
十分钟Unix自学教程 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=117&ID=157373
Korn Shell:Unix and Linux Programming Manual
http://bbs.topsage.com/dispbbs.asp?boardID=117&ID=157376
Unix shell范例教程 (第四版)
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=150295
Unix环境高级编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=147632
Unix环境高级编程 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157443
Unix Systems Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=157691
Linux编程从入门到精通
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=147628
Linux实例编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=160477
Linux 3D Graphics Programming
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=177750
Linux环境编程 GCC完全参考
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=160132
Linux应用程序开发指南 使用Gtk+ Gnome库
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=148197
Programming Linux Games
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=174242
Linux C高级程序员指南
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=148196
Sams Mono Kick Start - Linux环境的.NET编程
http://bbs.topsage.com/dispbbs.asp?boardID=119&ID=160133