answersLogoWhite

0

Why you use default system C?

Updated: 12/19/2022
User Avatar

Wiki User

12y ago

Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Why you use default system C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What parameter to a function is one for which an automatic value is supplied if do not explicitly use one in C programming?

You are referring to default arguments. However, C does not support default arguments. That's a C++ feature.


What is meant by a mandatory field?

a mandatory field in a database is one created in a table as "Not null". This means, there is a "rule" on the field that when data is inserted into the table, this field cannot be empty. If it is, then the insert errors. Here's part of a table definition in my database. These field are are required to be populated when inserting into this table. ATTR_DESC_01 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_02 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_03 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_04 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_05 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_06 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_07 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_08 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_09 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_10 CHAR(2) DEFAULT SYSTEM NOT NULL, PARTITION_NBR SMALLINT NO DEFAULT NOT NULL)


Why Member functions are not virtual by default?

It depends which language you are using. Java member functions are virtual by default but C++ member functions are not. Java takes the viewpoint that if any member function is declared virtual then all member functions should be declared virtual, so they may as well be virtual by default. However, C++ takes the view that a member function should only be declared virtual if there's a specific reason to declare it virtual. Not all functions are meant to be overridden. Indeed, not all classes are meant to act as base classes. So all member functions are non-virtual by default. Purists will argue that the C++ method is the correct method. After all, there's no point in having a virtual-table if it's never going to be used. Java places the onus on the programmer to eliminate an unused virtual-table, whereas C++ simply doesn't provide one unless you explicitly declare one. However, the real reason C++ uses non-virtual methods by default is because it has to maintain compatibility with a C struct. A C struct is not a class so it has no methods (and therefore no virtual methods). It is a "plain-old-data" or POD structure. In C++, however, a struct is a class. As such, by default, it has a compiler-generated default constructor, default copy and move constructors, default copy and move assignment operators and a default destructor. It also has public access by default. However, because the compiler-generated methods are all trivial member-wise implementations, a C++ struct is backwardly compatible with a POD. Thus C code can use a C++ struct just as if it were a C struct, because both use POD structures by default. If C++ used virtual member functions by default, a struct would not be a POD by default, it would be a base class by default.


What are the differences between a struct data type and a class data type in c plus plus?

A struct declares all members public by default, whereas a class declares all members private by default. That is really the only difference. Structs are from C and classes from C++, you can use both structs and classes in C++ but only structs in C.


What is a default access specifier for variable in c sharp?

Default access specifier in c# is private. if you don't specify it automaticaly takes it as private.

Related questions

What operating system does not use c windows as a default location?

Windows 2000


The system root folder which is C Windows by default is shared as?

admin$


Can you still use your default browser when you indtall Google Chrome?

Yes, you can still use your default browser. You can have multiple browsers on your system.


What parameter to a function is one for which an automatic value is supplied if do not explicitly use one in C programming?

You are referring to default arguments. However, C does not support default arguments. That's a C++ feature.


What is the default location for system files in all vertions of 32 Windows Vista?

C:\Windows\


If only one hard disk is installed on a windows server 2003 system what disk number will be assigned?

The default is C: that is the default drive letter, the default drive number is Disk 0


What is a default location for system files in all version of 32-bit windows vista?

c:\windows\system32


How can you use the Windows xp filing system in windows 7?

Windows XP and Windows 7 both use the same file system by default: NTFS.


The fields in a c program are by default private is true or not?

I guess you mean C++, not C.Data fields of a structure/union are public by default,those of a class are private by default.


What is meant by a mandatory field?

a mandatory field in a database is one created in a table as "Not null". This means, there is a "rule" on the field that when data is inserted into the table, this field cannot be empty. If it is, then the insert errors. Here's part of a table definition in my database. These field are are required to be populated when inserting into this table. ATTR_DESC_01 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_02 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_03 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_04 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_05 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_06 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_07 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_08 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_09 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_10 CHAR(2) DEFAULT SYSTEM NOT NULL, PARTITION_NBR SMALLINT NO DEFAULT NOT NULL)


Which is a default system for explorer?

Internet Explorer is a default system for Microsoft. When you install the Windows Operating System, the default browser you will get is Internet Explorer. You can change to other browser options.


What file system does Red Hat Enterprise Linux use?

ext3 is the default file system for Red Hat Enterprise Linux.