I was trying out this program but it terminates by saying that debug assertion has failed.
What is the error and what does this imply "debug assertion failed"? I am using Visual Studio c++.
int nol= 0, not = 0, nob = 0, noc =0;
fp = fopen("C:\Documents and Settings\ROHAN\Desktop\DESKTOP\filejava.txt", "r");
ch = fgetc(fp);
if(ch == EOF)
if(ch = " ")
if(ch = '\n')
if (ch = '\t')
printf("\n No of char = %d", noc);
printf("\n No of line = %d", nol);
printf("\n No of tab = %d", not);
printf("\n No of space = %d", nob);