idk why it always come out [Warning] comparison between pointer and integer in line 18 and 26. what should I change the error i get is
[Warning] comparison between pointer and integer
Im new to coding so i need some help
The problem should be in this line
#include <stdio.h>
#include <string.h>
char type_of_paper[20];
float marks_1, marks_2, Total_1_Mark, pp2_marks;
void main()
{
printf("\nEnter type of paper [1/2] :");
gets(type_of_paper);
if(type_of_paper == '1' )
{
printf("\nEnter Section A and Section B marks: ");
scanf("%f %f", &mark_1, &marks_2);
Total_1_Mark = marks_1 + marks_2;
printf("\nPaper Type : Paper 1");
printf("\nTotal paper 1 Mark : %2f", Total_1_Mark);
}
else if(type_of_paper == '2')
{
printf("\nEnter paper2 marks :");
scanf("%f", &pp2_marks);
printf("\nPaper Type : Paper 2");
if(pp2_marks < 60)
{
printf("Status : noob");
}
else if (pp2_marks < 80)
{
printf("Status : Good");
}
else if (pp2_marks <= 100)
{
printf("Status : Excellent");
}
else printf("whats wrong with u");
}
else printf("type again");
}