I just started learning C from yesterday and I encountered an issue and I am not getting why it is happening.
The code is this
#include<stdio.h>
int a=0;
void main() {
    if (a=13) {
        printf("Number Is Equal\n");
    }
    else {
        printf("Not Equal\n");
    }
}
It should show not equal but it is still showing Number is equal and i tried other numbers too in place of int a; If i assign the value of int a=13 and then if i run the statement if(a=13) then it is true but if i do the same with 0 on both place then it shows not equal.
 
     
     
     
     
    