Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Which of the following statement(s) is/are legal and which is/are illegal? string FN- Fama, LN-Sarvnaz; const int * const Pointer & FN; FN Farnaz

image text in transcribed
3. Which of the following statement(s) is/are legal and which is/are illegal? string FN- Fama", LN-"Sarvnaz"; const int * const Pointer & FN; FN "Farnaz Pointer "Atigheh"; Pointer &LN LN "Sorena Pointer "Sina", 4. Which the following statement (s) is/are legal and which is/are illegal? const double Pointer double Weekly_Hours 40.00,Rate 20, Salary; * Pointer-AX; Salary = Weekly-Hours * Rate; Weekly_Hours Weekly_Hours10, Pointer*Pointer50; Pointer & Rate Rate Rate2 Pointer *Pointer 10; Salary Weekly_Hours Rate; 5. How does arithmetic operation work on pointer? 6. What does *static_cast(Generic-Pointer)" mean? 7. Which of the following statement(s) is/are legal and which is/are illegal? int FN 25 SN 30; int * const Pointer &FN: FN FN +50; Pointer Pointer+50 Pointer& SN pointer-pointer + 50; SN SN*2 8. What would be the output of the following statements? int X, XPtr; X= 12; Cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

9. Mohawk Industries Inc.

Answered: 1 week ago