Answer Posted / lp
Declare a integer array size at runtime:
1.declare an interget pointer. - int *ptr
2.Get the size of array from user - int n
3.using malloc() ,allocate that many number of location to
the pointer. - ptr = malloc(n*sizeof(int));
4.Make use of the dynamically allocated array. - ptr[]
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is meant by errors and debugging?
What does stand for?
I need testPalindrome and removeSpace
#include
What is meant by 'bit masking'?
Explain pointer. What are function pointers in C?
Describe explain how arrays can be passed to a user defined function
What is define c?
What is restrict keyword in c?
The difference between printf and fprintf is ?
What are the types of unary operators?
How do you define a string?
How do you initialize pointer variables?
what is the height of tree if leaf node is at level 3. please explain
Who invented bcpl language?