Tuesday 12 March 2013

int abcdefghijklmnopqrstuvwxyz123456789=10;


#include<stdio.h>
int main(){
    int abcdefghijklmnopqrstuvwxyz123456789=10;
    int abcdefghijklmnopqrstuvwxyz123456=40;
    printf("%d",abcdefghijklmnopqrstuvwxyz123456);
    return 0;
}
Compilation error

Explanation: Only first 32 characters are significant in variable name. So compiler will show error: Multiple declaration of identifier abcdefghijklmnopqrstuvwxyz123456.


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment