Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 4RQ

Assume that you have two variables declared as int var 1 = 3 ; and int var 2 = 8 ;

Which of the following would display 838?

  1. WriteLine ( { 0 } { 1 } { 2 } ,   var1 ,   var2 ) ;
  2. WriteLine ( { 0 } { 1 } { 0 } ,   var2 ,   var1 ) ;
  3. WriteLine ( { 0 } { 1 } { 2 } ,   var2 ,   var1 ) ;
  4. WriteLine ( { 0 } { 1 } { 0 } ,   var1 ,   var2 ) ;

Blurred answer
Students have asked these similar questions
Given the following code: long int data = {5, 7, 9, 1}; long int* ptr = nullptr; Write a statement that sets ptr to point to the number 9.
For the following code:    for ( a = 1, b = 5, c = 3; a < 4; a++, b++ )    {         c = a * b + c;    } Indicate what values for the following variable will be when the code endsa=b=c=
o assign a double variable d to an int variable x, you write ____. x = d; x = (double) d; x = (int) d; d = x;

Chapter 2 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY