0
Compare between pointer and integer
Sometimes when I created a character variable in C programming and check the value in if statement then my Compiler show that you are comparing between pointer and intiger and Then I can't get value from scanf function why please tell me.
3 ответов
+ 1
Because although pointers are stored as integers, they are not actually so. You can just use the de-referencing operator to get the value stored in the pointer.
*ptr_name [comparison_operator] int
0
But I didn't use any pointer, I only use character variable, please explain me
0
Please read what you have posted in your question. You have written 'Compare between pointer and integer'. To elaborate your question, please post your code here.