Given the variables p, q are of char type and r, s, t are of int type. Select the right statement? 1. t = (r * s) / (r + s); 2. t = (p * q) / (r + s);

🎲 Try a Random Question  |  Total Questions in Quiz: 116  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C++ Programming Practice Test: Types, Pointers, Arrays & Structures in C++ — practice the complete quiz, review flashcards, or try a random question.

Quiz questions on integer, float, character and boolean types. It also contains arrays, pointers, references and structures. Types, pointers, arrays, and structures are fundamental concepts in C++.  Types: C++ has a variety of data types, including primitive types, abstract data types, and derived data types. Primitive types are the basic building blocks of C++ programs, and include integer, floating-point, character, boolean, double floating-point, valueless or void, and wide character. Abstract data types are data types that are defined by their operations, rather than their... Show more

Given the variables p, q are of char type and r, s, t are of int type. Select the right statement?<br> 1. t = (r * s) / (r + s);<br> 2. t = (p * q) / (r + s);