Questions tagged [const]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
412 views

What is const int?

Can anybody explain What is const int and How it works? It was used in the following code of the find.c The program is as follows: /** * Prompts user for as many as MAX values until EOF is reached, ...
0
votes
1answer
86 views

Why is const used in field.c of pset3?

What does the following code do in the find.c source code in pset3 const int MAX = 65536; Does it define a constant MAX with value 65536? If so, then is this same as writing : #Define MAX 65536