C Flashcards

1
Q

What is pointer? How to create pointer, how to print address with pointer(specifier), what is indentation operator?

A
  • variable that stores address of another variable
  • use * operator
  • use %p specifier
  • *varName is indentation poerator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How gets() anf fgets() works?

A
  • gets(): read one line input, usnafe of size of input gets large, leading to buffer overflow
  • ## fgets() reads a line of input safely into a buffer, allowing us to specify the maximum size to prevent overflow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is argc and *argv in C

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly