hello friends
what do u mean by BUS ERROR
i got this error while i am doing my program in DATA STRUCTURES
Answers were Sorted based on User's Feedback
Answer / theredplanethavoc
This error occurs when the program tries to access a memory
location outside its address space. That is, accessing
uninitialized pointers, or even mangled pointers (ones which
have no reference or have been deleted).
The Bus error means that the kernel did not detect the
problem on its own; the memory system realized the error.
| Is This Answer Correct ? | 4 Yes | 0 No |
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
11 Answers HCL, Vector, Vector India, Vector Solutions, Wipro,
Explain the use of 'auto' keyword in c programming?
what are the compilation steps? ( i want inside the compiler )
can we declare a variable in different scopes with different data types? answer in detail
What are macros in C?
What are run-time errors?
What is the mean of this statement:: if(int i=0 * i=9)
char *p="name"; printf(p);
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Explain what standard functions are available to manipulate strings?
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
2 Answers Drona Solutions, Infosys, Vodafone, Webyog,