How can I set an array's size at run time?

Answer Posted / suman

by using calloc() or malloc() functions we create at run
time


i think it will be correct if not forgive me

sumankumar..........

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files in c?

828


What's the best way of making my program efficient?

848


What is the meaning of 2d in c?

837


What are structural members?

795


Explain how do you search data in a data file using random access method?

912


provide an example of the Group by clause, when would you use this clause

1978


how can use subset in c program and give more example

1701


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1607


How can you increase the allowable number of simultaneously open files?

833


What is the use of function in c?

940


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1850


What is the purpose of the statement: strcat (S2, S1)?

863


Can you define which header file to include at compile time?

809


#include { printf("Hello"); } how compile time affects when we add additional header file .

1678


What does emoji p mean?

804