C Language Interview Questions and Answers for Freshers - 5
Question: 21
What are the different types of variables in C?
There are three types of variables in C
Local variable
Global variable
Environment variable
Question: 22
What is environment variable in C?
Environment variable is a variable that will be available for all C applications and C programs.
Once environment variables are exported, we can access them from anywhere in a C program without declaring and initializing in an application or C program.
Question: 23
What is global variable in C?
The variables which are having scope/life throughout the program are called global variables.
A global variable is defined outside the main functions. So, this variable is visible to main function and all other sub functions.
Question: 24
What is local variable in C?
The variables which are having scope/life only within the function are called local variables.
These variables are declared within the function and can’t be accessed outside the function.
Question: 25
What are the types of I/O statements available in C?
There are two types of I/O statements available in C:
Formatted I/O Statements
Unformatted I/O Statements
- Top 500+ C Language Interview Questions and Answers Pdf
- C Language Interview Questions and Answers
- C Language Interview Questions and Answers for Freshers
- C Language Interview Questions and Answers for Experienced
- C Programming Interview Questions and Answers
- Embedded C Interview Questions and Answers Pdf
- Top 200+ Advanced C Language Interview Questions 2020-2021
- C Programming Question Bank with Answers Pdf
- C Programming Interview Questions and Answers for Freshers
- C Programming Interview Questions and Answers for Experienced
- C Programming Basics Questions and Answers Pdf
- 1000+ Advanced C Programming Interview Questions & Answers
- 1000+ C Interview Questions and Answers 2023 - 2024 Pdf
- 1000+ C Programming Coding Questions and Answers
- 1000+ C Basic Interview Questions for Freshers Pdf
- 1000+ C Questions and Answers Pdf
Science Solutions Class 10 Important Questions and Answers More
Science Solutions Class 10 Important Questions and Answers More
Samacheer Kalvi 10th Science Solutions Questions & Answers More
Samacheer Kalvi 10th Science Carbon and Its Compounds Questions More
Carbon and its Compounds Class 10 Questions and Answers More
Top 100+ Average Aptitude Questions and Answers More
Computer Gk Objective Questions and Answers More
Material Science MCQ Questions Pdf Download More
Computer Online Test More
1000+ Computer Networks Viva Questions and Answers Pdf More