adplus-dvertising
frame-decoration

Question

In order to create a local variable we need to use local keyword.
local int var;

a.

True

b.

False

c.

Optional

d.

None of the above

Posted under C Programming

Answer: (b).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In order to create a local variable we need to use local keyword. local int var;

Similar Questions

Discover Related MCQs

Q. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

Q.
Is there any difference between following declarations?

1 : extern int fun();
2 : int fun();

Q. Which of the following is not user defined data type?

1 :
struct book
{
char name[10];
float price;
int pages;
};

2 :
long int l = 2.35;

3 :
enum day {Sun, Mon, Tue, Wed};

Q. Is the following statement a declaration or definition?
extern int i;

Q. Identify which of the following are declarations

1 : extern int x;
2 : float square ( float x ) { ... }
3 : double pow(double, double);

Q. When we mention the prototype of a function?

Q. Which of the declaration is correct?

Q. Which of the following operations are INCORRECT?

Q. Which of the following correctly represents a long double constant?

Q. Which of the following correctly shows the hierarchy of arithmetic operations in C?

Q. Which of the following is the correct usage of conditional operators used in C?

Q.
Which of the following are unary operators in C?
1. !
2. sizeof
3. ~
4. &&

Q. In which order do the following gets evaluated

1. Relational
2. Arithmetic
3. Logical
4. Assignment

Q. What are the types of linkages?

Q. Is there any difference between following declarations?
1 :
extern int fun();

2 :
int fun();

Q. Which of the following is not user defined data type?

1 :
struct book
{
char name[10];
float price;
int pages;
};

2 :
long int l = 2.35;

3 :
enum day {Sun, Mon, Tue, Wed};

Q. Identify which of the following are declarations


1 :
extern int x;


2 :
float square ( float x ) { ... }


3 :
double pow(double, double);

Q. Which of the following is correct about err used in the declaration given below?
typedef enum error { warning, test, exception } err;

Q. Which of the structure is incorrcet?

1 :
struct aa
{
int a;
float b;
};

2 :
struct aa
{
int a;
float b;
struct aa var;
};

3 :
struct aa
{
int a;
float b;
struct aa *var;
};

Q. Which of the structure is correct?


1 :
struct book
{
char name[10];
float price;
int pages;
};


2 :
struct aa
{
char name[10];
float price;
int pages;
}


3 :
struct aa
{
char name[10];
float price;
int pages;
}