What's wrong with "char *p; *p = malloc(10);"?

Answer Posted / guest

The pointer you declared is p, not *p.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data structure in c language?

833


Is there any possibility to create customized header file with c programming language?

830


Explain how do you use a pointer to a function?

850


What is the use of volatile?

823


Write a program to generate the Fibinocci Series

868


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

1030


What does int main () mean?

765


What is a memory leak? How to avoid it?

877


How do you define CONSTANT in C?

878


How can a program be made to print the line number where an error occurs?

871


Under what circumstances does a name clash occur?

933


Explain modulus operator.

805


What is a dynamic array in c?

802


Where can I get an ansi-compatible lint?

881


How do I determine whether a character is numeric, alphabetic, and so on?

857