Test your C knowledge

Description

Assume the code snippets are running on an architecture where : - memory addresses are 32 bits (i.e. sizeof(void*) = 4) - integers are 32 bits - characters are 8 bits
christophetd
Quiz by christophetd, updated more than 1 year ago
christophetd
Created by christophetd over 9 years ago
28
0

Resource summary

Question 1

Question
What is the output of the following code ?
Answer
  • 4 - 4
  • 168 - 4
  • 168 - 168
  • 4 - 168

Question 2

Question
What is the output of the following code?
Answer
  • 42 - 42 - 4
  • 43 - 42 - 4
  • Compilaton error

Question 3

Question
What is the output of the following code?
Answer
  • Compilation error
  • 5
  • 1
  • 2
  • 3
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Common Technology Terms
Julio Aldine Branch-HCPL
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush