How can you determine the size of an allocated portion of memory?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

write a program to generate 1st n fibonacci prime number

12 Answers  


main() { int i=5; printf("%d%d%d%d",i++,i--,i); }

10 Answers  


Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.

0 Answers  


What is null pointer constant?

0 Answers  


Write a function in c to find the area of a triangle whose length of three sides is given.

2 Answers  






what is difference between getchar,putchar functions and printf and scanf function? does putchar show output only when input given to it

5 Answers   DIT,


What header files do I need in order to define the standard library functions I use?

0 Answers  


c program to subtract between two numbers without using '-' sign and subtract function.

1 Answers  


Can I pass constant values to functions which accept structure arguments?

2 Answers  


f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


What is indirection? How many levels of pointers can you have?

0 Answers   Aspire, Infogain,


Without Computer networks, Computers will be half the use. Comment.

0 Answers  


Categories