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
provide an example of the Group by clause, when would you use this clause
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is d scanf?
What is a pointer variable in c language?
What is the difference between int main and void main in c?
What is difference between far and near pointers?
What is character set?
What is the difference between ++a and a++?
How can I find the modification date of a file?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is c++ used for today?
What is the difference between a free-standing and a hosted environment?
What does == mean in texting?
What does a function declared as pascal do differently?