C Programming Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Koji operator se koristi za inicijalizaciju pokazivača u C-u?

  • "*" operator
  • "--" operator
  • "&" operator (correct)
  • "++" operator

Koja funkcija se koristi za alociranje dinamičke memorije u C-u?

  • "sizeof"
  • "scanf"
  • "printf"
  • "malloc" (correct)

Koje su karakteristike algoritama koje bi trebale biti zadovoljene?

  • Ulaz, izlaz, determinizam, konačnost i efikasnost
  • Ulaz, izlaz, nedeterminizam, beskonačnost i efikasnost
  • Ulaz, izlaz, determinizam, beskonačnost i efikasnost (correct)
  • Ulaz, izlaz, determinizam, beskonačnost i neefikasnost

Može li pokazivač pokazivati na varijablu različitog tipa u C-u?

<p>Da (D)</p> Signup and view all the answers

Što se događa ako se koristi neinicijalizirani pokazivač u C-u?

<p>Program će se srušiti (C)</p> Signup and view all the answers

Flashcards are hidden until you start studying

Study Notes

  1. A float pointer contains the address of a float variable.
  2. A pointer can change the value of a variable through its address or variable name.
  3. A pointer can point to a variable of a different type.
  4. A pointer is initialized by assigning the address of a variable to it using the "&" operator.
  5. An uninitialized pointer is valid for reading and writing, but it contains a random memory address.
  6. Variables can be passed to a function by value or reference.
  7. Memory allocation functions in C include malloc, calloc, and realloc.
  8. Dynamic memory allocation is preferred when the size of an array is unknown.
  9. The return type of malloc and realloc is a void pointer.
  10. Algorithms should satisfy criteria such as input, output, determinacy, finiteness, and efficiency.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser