Wednesday 13 March 2013

printf as Variable name


#include<stdio.h>
int main(){
    int printf=12;
    printf("%d",printf);
    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