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 are the advantages of c language?
What is the c value paradox and how is it explained?
What do you understand by normalization of pointers?
what is event driven software and what is procedural driven software?
What is a macro, and explain how do you use it?
What is the process to generate random numbers in c programming language?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What does %p mean c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What are the properties of union in c?
What is the easiest sorting method to use?
Explain what is the concatenation operator?
Describe wild pointers in c?
Tell me with an example the self-referential structure?