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
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
3
Q
what is argc and *argv in C
A
4
Q
A