3,240 views
2 votes
2 votes
4. Which of the following is not a valid variable name declaration and why?
a) float PI = 3.14;
b) double PI = 3.14;
c) int PI = 3.14;
d) #define PI 3.14

1 Answer

Best answer
1 votes
1 votes
d) #define PI 3.14

It is a macro preprocessor, it is textual substitution.
So we cant say it as a Variable Declaration.
selected by

Related questions

0 votes
0 votes
3 answers
1
Nitesh Choudhary asked Apr 16, 2017
5,915 views
4. Which of the following is not a valid variable name declaration and why?a) float PI = 3.14;b) double PI = 3.14;c) int PI = 3.14;d) #define PI 3.14
1 votes
1 votes
1 answer
2
Naveen Kumar 3 asked Jul 29, 2017
723 views
main ( ){int a = 2, b, c;a* = b = c = 4;a = b = c;printf (“%d”, a);a = = (b = c);printf (“%d”, a);}What will be the output?Not able to understand !!
0 votes
0 votes
0 answers
3
Nishi Agarwal asked Mar 10, 2019
505 views
A(n){if(n<1) return (1);else return A(n-2)+B(n-1);}B(n){if(n<=1) return 1;else return B(n-1)+A(n-2);}