What is alloca() and why is its use discouraged?
Answer / guest
alloca() allocates memory which is automatically freed when
the function which called alloca() returns. alloca() cannot
be written portably, is difficult to implement on machines
without a stack, and fails under certain conditions if
implemented simply.
| Is This Answer Correct ? | 5 Yes | 0 No |
4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.
What is main () in c?
Two's compliment of -5
FILE PROGRAMMING
Explain what is meant by high-order and low-order bytes?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Why does not use getgh(); and <conio.h> in c language.
write a function which accept two numbers from main() and interchange them using pointers?
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,
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.
how to convert an char array to decimal array
What is wrong with this initialization?