Machine-translated by Google. Questions are authored in English.
Top

Discussion

C programming language provides operations which deal directly with objects such as

  • A.strings and sets
  • B.lists and arrays
  • C.characters, integers, and floating point numbers
  • D.all of these

Answer: C

Correct answer: characters, integers, and floating point numbers

C provides operations directly on the fundamental machine types - characters, integers and floating point numbers - because those are what the hardware supports.

It provides nothing built in for strings, sets, lists or dynamic arrays. A C string is only a convention: an array of characters terminated by a null, manipulated through library functions rather than through operators. This minimalism is deliberate, and it is what allows C to compile to efficient code on machines with very different capabilities.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.