answersLogoWhite

0

Malloc uses which datatype

Updated: 12/15/2022
User Avatar

Wiki User

14y ago

Best Answer

size_t for input, void * for output

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Malloc uses which datatype
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the datatype of the pointer returned by malloc function?

void


What is the default datatype of the pointer returned by malloc function?

void


What is the best datatype for storing your birthday?

in Unix: the datatype is "Date" in C++: the datatype is "char"


What is the best datatype for storing birthdays?

in Unix: the datatype is "Date" in C++: the datatype is "char"


Write a program that show size of datatype?

sizeof(datatype)


What is mean by parse in java?

It is used to convert the value of one datatype into a value of another datatype. Example- Integer.parseInt(in.readLine); It converts given value to Integer datatype.


What is datatype of pointers?

pointer


What is the difference between char and varchar data types?

The CHAR datatype uses a fixed length, where as the VARCHAR datatype can be variable in length up to the maximum value specified for the length. If you insert "Hello" into a CHAR(10) field, the column would actually contain "Hello " with 5 trailing spaces. The same value inserted in a VARCHAR(10) field would contain "Hello". char datatype is fixed length data type and it store maximum 255 characters while varchardatatype store up to 4000 character of variable length datatype


How do you declare an N-Dimensional array using Malloc?

#include <stdlib.h> int **array1 = malloc(nrows * sizeof(int *)); for(i = 0; i < nrows; i++) array1[i] = malloc(ncolumns * sizeof(int));


What is the difference between allocating memory through heap and malloc?

Nothing, malloc does allocate memory from the heap.


C program to implement tower of hanoi using array implementation of stack abstract datatype?

stack abstract datatype


How do you declare functions?

datatype function_name() { }