Thursday 10 September 2009

C coding questions with answer


C coding questions with
answers and explanation



(q)
What will be output of the following c code?





#include

int main(){



long int a;



(float)a=6.5;



printf("%f",a);



return 0;

}





Output: error, L
value required



Explanation:



After applying
any operator in variable name it always give a value.



(Type): urinary
type casting operator is not exception for this. It

No comments:

Post a Comment