Tuesday, 12 March 2013

int max-val=100;


#include<stdio.h>
int main(){
    int max-val=100;
    int min-val=10;
    int avg-val;
    avg-val = max-val + min-val / 2;
    printf("%d",avg-val);
    return 0;
}
Compilation error

explanation: We cannot use special character – in the variable name.


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment