C Flashcards

1
Q

Differenced between c and java

A

No classes
Single namespace
no bounds checking for arrays or strings
Size of primitive platforms is specific

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

variables in C

A

char
int
float
double

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

int definer

A

%d

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

char definer

A

&C

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

float definer

A

%f

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

Char*

A

pointer to a char or a
variable that has the address of the first element of the array of
chars

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

pointer

A

is a typed variable whose value is the address of another object in memory

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

pointer to an int

A

a variable that contains the memory address of an int

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

& operator

A

returns the address of an object in memory

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

accesses the location in memory that the pointer points to

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