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

Answer Posted / raj

here syntox of malloc is not fallowed

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the format %10.2 mean when included in a printf statement?

1094


p*=(++q)++*--p when p=q=1 while(q<=6)

1272


how to capitalise first letter of each word in a given string?

1436


What is the equivalent code of the following statement in WHILE LOOP format?

774


Explain can static variables be declared in a header file?

684






How do you generate random numbers in C?

663


Define and explain about ! Operator?

619


How we can insert comments in a c program?

636


Why main is used in c?

594


What are predefined functions in c?

572


What is a union?

613


What's the right way to use errno?

628


What is the purpose of realloc()?

677


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2524


Why is main function so important?

619