How will you allocate memory to double a pointer?
Answer / pavan135
main()
{
char *pch; **ppch;
pch = malloc(100);
if(pch == NULL)
return -1;
ppch = &pch;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
why we shiuld use main keyword in C
Discuss the function of conditional operator, size of operator and comma operator with examples.
identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;
Why does everyone say not to use gets?
What are enums in c?
Are there constructors in c?
9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?
Difference between macros and inline functions? Can a function be forced as inline?
0 Answers HAL, Honeywell, Zomato,
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
How can I direct output to the printer?
Why is C called a middle-level language?
What is context in c?