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 math functions are available for integers? For floating point?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is a pragma?
What is function and its example?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is the use of parallelize in spark?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the explanation for modular programming?
Can we increase size of array in c?
What are the application of void data type in c?
why do some people write if(0 == x) instead of if(x == 0)?
Explain how do you list files in a directory?
what are the 10 different models of writing an addition program in C language?
Explain how can you avoid including a header more than once?
what is uses of .net