What is malloc() function?
No Answer is Posted For this Question
Be the First to Post Answer
Which built-in library function can be used to match a patter from the string?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count
What is const volatile variable in c?
Ow can I insert or delete a line (or record) in the middle of a file?
what is real time system?what is the differance between hard and soft real time systems
Is it cc or c in a letter?
what is the use of macro program
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
i want to know aptitude questions,technical questions
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }