What's wrong with "char *p; *p = malloc(10);"?
Answers were Sorted based on User's Feedback
Answer / clay
Here,
After char *p;
since pointer p is not initialized it is pointing at some
unknown location.
In the next step, the address of the memory allocated by
malloc() is stored at some garbage location pointed by p.
Here p is never initialized or never assigned any value.
| Is This Answer Correct ? | 0 Yes | 3 No |
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
Explain how does free() know explain how much memory to release?
Hierarchy decides which operator a) is most important b) is used first c) is fastest d) operates on largest numbers
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
compare array with pointer?
The file stdio.h, what does it contain?
disadvantages of realloc ?
Explain do array subscripts always start with zero?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
Explain about the constants which help in debugging?
What is a double c?