They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
float PI = 3.14;
double PI = 3.14;
int PI = 3.14;
#define PI 3.14
volatile
true
friend
export
char
int
float
double
signed short
unsigned short
long
typedef int Boolean;
typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
struct {char name[10], int age};
all of the mentioned
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
char > int > float
int > char > float
char < int < double
double > char > int
struct
Compiler
Preprocessor
Linker
Assembler
Constant variables need not be defined as they are declared and can be defined later
Global constant variables are initialized to zero
const keyword is used to define constant values
You cannot reassign a value to a constant variable
String str;
char *str;
float str = 3e2;
Both String str; & float str = 3e2;
char *str = “Best C programming classes by Sanfoundry”;
char str[] = “Best C programming classes by Sanfoundry”;
char str[20] = “Best C programming classes by Sanfoundry”;
char[] str = “Best C programming classes by Sanfoundry”;
immutable
mutable
const
Multimedia Instrument Digital Information
Musical Instrument Digital Interface
Multimedia Instrument Digital Interface
Musical Information Digital Information
physical data model
logical data model
external data model
none of the above
Standard Query Language
Structured Query Language
Shortest Query Language
System Query Language
Both are internal command of DOS
Both are external commands of DOS
Both A) and B)
Both can be used to copy file or group of files