#include
main()
{
int *p, *c, i;
i = 5;
p = (int*) (malloc(sizeof(i)));
printf("
%d",*p);
*p = 10;
printf("
%d %d",i,*p);
c = (int*) calloc(2);
printf("
%d
",*c);
}
No Answer is Posted For this Question
Be the First to Post Answer
What are the different pointer models in c?
How can I recover the file name given an open stream or file descriptor?
How can I change the size of the dynamically allocated array?
The __________ attribute is used to announce variables based on definitions of columns in a table?
what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error
Can the size of an array be declared at runtime?
What is the difference between exit() and _exit() function?
When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these
What is c mainly used for?
WAP – represent a char in binary format
Why isnt any of this standardized in c?
Which command is more efficient? *(ptr+1) or ptr[1]