[C] 기초1007. 출력하기
in CODING TEST on Codestates
윈도우 운영체제의 파일 경로를 출력하는 연습을 해보자.
파일 경로에는 특수문자들이 포함된다.
Codeup의 기초 100제 커리큘럼에서 제공되는 문제입니다. 😀
1. Example
Your output should look something like :
- input - 없음
 
- **output ** - “C:\Download\hello.cpp”
 
2. solution
#include <stdio.h>
int main() 
{
    printf("\"C:\\Download\\hello.cpp\"");
}
마치며
경로를 출력하는데에도 백슬레스는 문자로 취급되기 때문에 \\를 해줘야했다. 처음에는 따옴표 출력을 같이 안해서 조금 헤맸다. 
 
