All India Exams
  • Sign In / Register Sign In
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

C Functions Questions And Answers

Here you can find C Functions Questions and Answers.

Why C Functions Questions and Answers Required?

In this C Functions Questions and Answers section you can learn and practice C Functions Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.

Where can I get C Functions Questions and Answers?

AllIndiaExams provides you lots C Functions Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download C Functions Questions and Answers as PDF files and eBooks.

How to solve these C Functions Questions and Answers?

You no need to worry, we have given lots of C Functions Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.

C Functions Questions & Answers

1. What is the output of this C code? int main() { void foo(), f(); f(); } void foo() { printf("2 "); } void f() { printf("1 "); foo(); }

C Functions Questions & Answers

2. What is the output of this C code? int main() { void foo(); void f() { foo(); } f(); } void foo() { printf("2 "); }

C Functions Questions & Answers

3. What is the output of this C code? void foo(); int main() { void foo(); foo(); return 0; } void foo() { printf("2 "); }

C Functions Questions & Answers

4. What is the output of this C code? void foo(); int main() { void foo(int); foo(1); return 0; } void foo(int i) { printf("2 "); }

C Functions Questions & Answers

5. What is the output of this C code? void foo(); int main() { void foo(int); foo(); return 0; } void foo() { printf("2 "); }

C Functions Questions & Answers

6. What is the output of this C code? void m() { printf("hi"); } void main() { m(); }

C Functions Questions & Answers

7. What is the output of this C code? void m(); void n() { m(); } void main() { void m() { printf("hi"); } }

C Functions Questions & Answers

8. What is the output of this C code? void main() { m(); void m() { printf("hi"); } }

C Functions Questions & Answers

9. What is the output of this C code? void main() { m(); } void m() { printf("hi"); m(); }

C Functions Questions & Answers

10. What is the output of this C code? void main() { static int x = 3; x++; if (x <= 5) { printf("hi"); main(); } }

Home EngineeringComputer Science & EngineeringC Multiple Choice Questions & AnswersC Functions

C Functions - C Multiple Choice Questions & Answers

This is the c programming questions and answers section on " C Functions" with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. Postulates can learn competitive and Technical C programming MCQ Questions and Answers on Function with easy and logical explanations. Here the applicants can find the objective type C Functions Questions to prepare for the examinations. The questions arranged in the C Functions Online Test are asked in the various software companies interviews. So, the candidates can check C Functions Mock Test and know the different type of questions and answers. The contenders who are in search for the C Functions Questions and Answers can refer to this post.



C Functions Questions - C Functions Quiz Details

Online Test Name C Functions
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 86


Candidates can gather the details of the C Functions Quiz and C Function Questions from the above table. A C Function declaration tells the compiler about a function's name, return type and the parameters. A function definition provides the actual body of the function. In function syntax, the users need to mention the parameters that the function can call. The C standard library provides numerous built-in functions that the program can call. For each C program has a function called main() that is called by OS when a user runs the program. Every function has a return type.



C Functions Multiple Choice Questions

Do you know about the Functions in C? 80+ C Functions Questions are arranged in the below online test to know more about the topic. The candidates can refer to the C Functions Quiz and learn all the questions along with the answers. Competitors who are ready to know about the Functions in C can take part in the C Functions Mock Test. We have not provided any time duration for students to practice the C Functions Questions and Answers. In addition to this, the applicants need not to give any sign-in information to take part in the C Functions Online Test.

C Functions MCQ Quiz Answers with Solutions

Functions are the fundamental and essential concept in the C Programming Language. Thus, all the students need to know all the C Functions MCQ Quiz Answers with Solutions to the questions. Aspirants need to click on the View Answer button to see the right solution to the questions. Students can also follow our website @ Allindiaexams.in to practice more online tests related to the Computer Science Engineering. Lastly, All the Best to the competitors who are preparing for the interviews and competitive examinations.


1. What is the output of this C code?

int main()
{
void foo(), f();
f();
}
void foo()
{
printf("2 ");
}
void f()
{
printf("1 ");
foo();
}
  • A. Compile time error as foo is local to main
  • B. 1   2
  • C. 2   1
  • D. Compile time error due to declaration of functions inside main
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

None.

Workspace

Report Error


2. What is the output of this C code?

int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
  • A. 2   2
  • B. 2
  • C. Compile time error
  • D. Depends on the compiler
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

Even though the answer is 2, this code will compile fine only with gcc. GNU C supports nesting of functions in C as a language extension where as standard C compiler doesn’t.

Workspace

Report Error


3. What is the output of this C code?

void foo();
int main()
{
void foo();
foo();
return 0;
}
void foo()
{
printf("2 ");
}
  • A. Compile time error
  • B. 2
  • C. Depends on the compiler
  • D. Depends on the standard
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

None.

Workspace

Report Error


4. What is the output of this C code?

void foo();
int main()
{
void foo(int);
foo(1);
return 0;
}
void foo(int i)
{
printf("2 ");
}
  • A. 2
  • B. Compile time error
  • C. Depends on the compiler
  • D. Depends on the standard
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

None.

Workspace

Report Error


5. What is the output of this C code?

void foo();
int main()
{
void foo(int);
foo();
return 0;
}
void foo()
{
printf("2 ");
}
  • A. 2
  • B. Compile time error
  • C. Depends on the compiler
  • D. Depends on the standard
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

None.

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ...
  • 17
  • 18
  • »

Related Topics:

  • Standard Input and Output
  • C Data Types
  • Declarations
  • Conditional Expressions
  • Preprocessor
  • Pointers
  • File Access
  • Storage Management
  • Variable Names
  • C Operators

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • LIC Mock Test Series

  • MAT Mock Test

  • SEBI Mock Test

  • ESIC Mock Test

  • IT Courses Quiz

Newsletter

Contact Us

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning Questions
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation Questions
  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics
  • iOS Interview Questions
  • Web Technologies
  • Database Interview Questions
  • MS Office Interview Questions
  • Software Tools
  • Data Interpretation
  • PHP Interview Questions
  • CAT Mock Test
  • SSC Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy