ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Typing on the screen contents of a variable char s = "this is only a test" will be done in C ++ using statement:

Typing on the screen contents of a variable char s = "this is only a test" will be done in C ++ using statement:A. cin << sB. cout >> sC. cout << sD. cin >> s

user-image
تم إضافة السؤال من قبل Tomasz Modrzejewski , Python Developer , Freelancer
تاريخ النشر: 2015/04/18
Ahmed Maher allam
من قبل Ahmed Maher allam , Senior IT Consultant , CBK - G&D - AXIS-olutions

c. cout <<  s , is the correct answer

Yogesh Dhakad
من قبل Yogesh Dhakad , Director Technical , Timeless Horizon Engineering Solutions

The correct answer is;

C. cout << s

Remember;

- you always "give" to cout (hence cout << aVariable;)

- you always "take" from cin (hence cin >> aVariable;)

Abdul Khader Shaik
من قبل Abdul Khader Shaik , Cyber Crime Lawyer , Grofers

Hey Tomasz Modrzejewski...!!

Are you alright..??

How can you forget this basic thing..

هاشم المشارقة
من قبل هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)

The right choice is C.

cout << s ;

Tomasz Modrzejewski
من قبل Tomasz Modrzejewski , Python Developer , Freelancer

yes C / how did you know ? Do you can prove it?

المزيد من الأسئلة المماثلة