As your compiler will have told you, pointer from integer without a cast is at
j=(str[N-1]);
And integer from pointer is at
str[0]=j;
You should have declared j as char j;
More Related Contents:
- What is pointer to string in C?
- What is the output of the following code in C? [closed]
- Incorrect result in c code
- whats the difference between dynamic memory allocation and normal memory allocation?
- pointer to string concept in c [closed]
- I need help trying to understand this piece of code about structures and pointers [closed]
- Correct format specifier to print pointer or address?
- How does free know how much to free?
- “Pointer from integer/integer from pointer without a cast” issues
- Are there any platforms where pointers to different types have different sizes?
- How to pass a 2D array by pointer in C?
- Pointer to pointer of structs indexing out of bounds(?) when I try to index anything other than zero
- How to use pointer expressions to access elements of a two-dimensional array in C?
- Addresses of two char pointers to different string literals are same
- Difference between char* and const char*?
- In C, what is the correct syntax for declaring pointers?
- Pointers – Difference between Array and Pointer
- Are “malloc(sizeof(struct a *))” and “malloc(sizeof(struct a))” the same?
- C – SizeOf Pointers
- Swapping pointers in C (char, int)
- What is double star (eg. NSError **)?
- Where in memory are string literals ? stack / heap? [duplicate]
- Generating a uniform distribution of INTEGERS in C
- How to include a dynamic array INSIDE a struct in C?
- How can I return a character array from a function in C?
- C difference between *[] and **
- What’s the difference between “int” and “int_fast16_t”?
- In C, is it good form to use typedef for a pointer?
- What is the function of an asterisk before a function name?
- Can I compare int with size_t directly in C?