Wednesday 13 March 2013

EOF as variable name


#include<stdio.h>
int main(){
    int EOF=12;
    printf("%d",EOF);
    return 0;
}

Compilation error

Explanation: Variable name cannot be pre defined function of included header file.


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment