Variable Names – 2.Image.Marked.pdf

Preview of PDF document variable-names-2-image-marked.pdf

Page 1 2 3 4 5 6 7

Text preview

View Answer
Explanation:A C program can have same function name and same variable name.
$ cc pgm3.c
$ a.out

6. What is the problem in following variable declaration?
float 3Bedroom-Hall-Kitchen?;
a) The variable name begins with an integer
The spe ial ha a te The spe ial ha a te ?
d) All of the mentioned
View Answer
Explanation:A variable name cannot start with an integer, along with that the C compiler
i te p ets the - a d ? as a

i us ope ato a d a uestio

7. Comment on the output of this C code?

#include <stdio.h>

int main()


a k ope ato espe ti el .