Describe explain how arrays can be passed to a user defined function
No Answer is Posted For this Question
Be the First to Post Answer
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?
How is a pointer variable declared?
Tell us something about keyword 'auto'.
Why c is called object oriented language?
advantages of pointers?
Write a function that will take in a phone number and output all possible alphabetical combinations
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
What is const keyword in c?
how to print 212 as Twohundreds twelve plz provide me ans soon
Can we replace the struct function in tree syntax with a union?
What is a far pointer?What is the utility?