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

Write a program to print fibonacci series without using recursion?

611


Is null always equal to 0(zero)?

587


Where we use clrscr in c?

708


Explain the advantages and disadvantages of macros.

627


Differentiate between a for loop and a while loop? What are it uses?

676






Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3845


What is the difference between exit() and _exit() function in c?

584


Can we replace the struct function in tree syntax with a union?

783


explain what is an endless loop?

612


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

668


Multiply an Integer Number by 2 Without Using Multiplication Operator

324


Can you mix old-style and new-style function syntax?

664


write a program to display all prime numbers

1456


What is a pointer in c plus plus?

698


What is hashing in c language?

616