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 |
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
Do string constants represent numerical values?
Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
What is the advantage of a random access file?
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
What is operator promotion?
Can we change the value of constant variable in c?
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
Why isnt any of this standardized in c?