what is difference between ++(*p) and (*p)++
Answer Posted / tejas
value that contained in p is incremented. (p is pointer.)
++(*p) --> pre-increment.
(*p)++ --> post-increment.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Describe the header file and its usage in c programming?
What is the difference between call by value and call by reference in c?
Which header file is essential for using strcmp function?
What is #ifdef ? What is its application?
Difference between goto, long jmp() and setjmp()?
How are structure passing and returning implemented?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Explain heap and queue.
What is the purpose of void in c?
what are the advantages of a macro over a function?
Is c dynamically typed?
Does c have class?
What is a #include preprocessor?