why to assign a pointer to null sometimes??how can a pointer
we declare get assigned with a garbage value by default???
No Answer is Posted For this Question
Be the First to Post Answer
Difference between for loop and while loop?
What is macro?
write a program to insert an element at the specified position in the given array in c language
What does int main () mean?
What are the advantages of external class?
What is meant by inheritance?
What does 1f stand for?
What are the different types of C instructions?
What do you mean by team??
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?