C vs Java

DistinguishedAlmandine4657 avatar
DistinguishedAlmandine4657
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Which storage class in C is used to store variables with a global scope?

Extern

What is the primary difference between pass by value and pass by reference in C?

Pass by value passes the value to the calling function, while pass by reference passes the address to the calling function.

What is the purpose of a void pointer in C?

To point to a specific memory location

How is an array different from a pointer in C?

<p>An array cannot be dereferenced, while a pointer can be dereferenced to access the value it points to.</p> Signup and view all the answers

What is the main difference between a null pointer and a void pointer in C?

<p>A null pointer points to nowhere, while a void pointer is a generic pointer.</p> Signup and view all the answers

More Quizzes Like This

Java vs C
5 questions

Java vs C

WellPositionedBliss avatar
WellPositionedBliss
Kotlin vs Java
5 questions

Kotlin vs Java

KidFriendlyChrysoprase avatar
KidFriendlyChrysoprase
Java vs Python
5 questions

Java vs Python

SofterComprehension avatar
SofterComprehension
TypeScript vs JavaScript: Key Differences
14 questions
Use Quizgecko on...
Browser
Browser