ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Value Types
|
|
Reference Types
|
|
String Types
|
|
Null Types
|
Detailed explanation-1: -The String type in C# allows you to assign any string values to a variable. The string type is an alias for the System.
Detailed explanation-2: -Unlike many other programming languages, C does not have a String type to easily create string variables. Instead, you must use the char type and create an array of characters to make a string in C: char greetings[] = “Hello World!"; Note that you have to use double quotes ( “” ).
Detailed explanation-3: -String variables–which are also called alphanumeric variables or character variables–have values that are treated as text. This means that the values of string variables may include numbers, letters, or symbols. In the Data View window, missing string values will appear as blank cells.
Detailed explanation-4: -The string data types are CHAR, VARCHAR, BINARY, VARBINARY, BLOB, TEXT, ENUM, and SET .
Detailed explanation-5: -Strings. Strings in python are used to represent unicode character values. Python does not have a character data type, a single character is also considered as a string. We denote or declare the string values inside single quotes or double quotes.