what is difference between ++(*p) and (*p)++
Answer Posted / pradeep......
Both are same ..................
reult will not differ in both operations....
#include <stdio.h>
#include <stdlib.h>
//#include <ctype.h>
void main()
{
char *ptr="hello";
clrscr();
//++(*ptr);
(*ptr)++;
printf("%s\n",ptr);
getch();
}
check this code..........
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
What is getch?
When can a far pointer be used?
What are # preprocessor operator in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What standard functions are available to manipulate strings?
What is the difference between void main and main in c?
Is there a way to switch on strings?
Explain do array subscripts always start with zero?
#include
What is difference between main and void main?
Explain the difference between structs and unions in c?
What is the right type to use for boolean values in c? Is there a standard type?
What is actual argument?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
How many levels of indirection in pointers can you have in a single declaration?