C Programming Fundamentals Quiz
6 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is a correct data type in C programming language?

  • decimal
  • float (correct)
  • real
  • fraction

What is the purpose of 'void' in a function declaration in C programming language?

  • Denotes an infinite loop
  • Indicates that the function does not return a value (correct)
  • Specifies that the function is a pointer
  • Represents a large integer value

Which symbol is used for the 'address of' operator in C programming language?

  • & (correct)
  • #
  • *
  • !

In C programming, what is the main difference between call by value and call by reference?

<p>Call by value passes the value of a variable to a function, while call by reference passes the address of a variable to a function (A)</p> Signup and view all the answers

Which symbol is used to access the value pointed to by a pointer in C programming language?

<ul> <li>(B)</li> </ul> Signup and view all the answers

What is the result of the following C code snippet? int x = 5; int *p = &x; printf("%d", *p);

<p>5 (B)</p> Signup and view all the answers

More Like This

C Programming Fundamentals Quiz
5 questions
Computer Programming Fundamentals Quiz
10 questions
Computer Programming Fundamentals Quiz
6 questions
Use Quizgecko on...
Browser
Browser