English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

example for c++ --> test.cpp

are "printf" and "scanf" commands in C++ or C

2006-06-30 20:49:12 · 5 answers · asked by Justin cool 2 in Computers & Internet Programming & Design

5 answers

c++ file name extention is .cpp
c file name extention is .c

printf and scanf commands belong to language C

2006-06-30 20:57:34 · answer #1 · answered by iyiogrenci 6 · 3 0

The file extension in C is .c like test.c and
in C++, the extension of file is .cpp, like test.cpp.

The printf and scanf are the standard output and input commands in C. But these can be valid in C++.
The same commands are cout and cin objects respectively in C++.

2006-07-01 10:48:55 · answer #2 · answered by yaramala 2 · 0 0

for c : myfile.c
forc++ : myfile.cpp
for using "printf" and "scanf" commands in C : #include befor main

2006-07-03 03:39:58 · answer #3 · answered by Spitrabergâ?¢ 4 · 0 0

I'm sorry iyiogrenci but printf and scanf are also in C++ language!they are predefined with ;
scanf allow you to insert data from file like "file>>x" for and printf allow you to print data into file like "file< for

2006-07-01 05:11:02 · answer #4 · answered by Yoda 2 · 0 0

The are in C++ ..

Thats a guess...

ok.
.
bye...

2006-07-01 03:55:51 · answer #5 · answered by Web-designer © 5 · 0 0

fedest.com, questions and answers