-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
리터럴 상수
23.01.10 19:47 작성 23.01.11 20:06 수정 조회수 330
0
수학에서의 상수와 달리 프로그래밍에서의 상수는 '값을 한번 저장하면 변경할수 없는 정장 공간' 이라고 정의 되어 상수라는 이름 대신 리터럴이라는 이름이 대신 쓰이는 것으로 알고있는데 맞나요?
답변을 작성해보세요.
0
강민철
2023.01.11
네, 달리 말해 리터럴 상수는 변수 등에 할당할 수 있는 문자, 숫자 등의 값 자체를 의미합니다.
아래를 참고 바랍니다.
https://microchipdeveloper.com/tls2101:literal-constants
A literal constant, or simply a literal, is a value, such as a number, character, or string that may be assigned to a variable or symbolic constant, used as an operand in an arithmetic or logical operation, or as a parameter to a function.
답변 1