Answer Posted / nashiinformaticssolutions
Segmentation faults occur when invalid memory is accessed. Use debugging tools like gdb to analyze.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
while initialization of array why we use a[][2] why not a[2][]...?
What are the types of data files?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What are logical errors and how does it differ from syntax errors?
What is the difference between exit() and _exit() function?
What is the description for syntax errors?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Is malloc memset faster than calloc?
Explain how can I read and write comma-delimited text?
Where we use clrscr in c?
What are c preprocessors?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Explain pointers in c programming?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Do character constants represent numerical values?