answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The fields in a c program are by default private is true or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is default return type for method in java?

default return type is : true


Is it true that after taking over leadership of Russia Vladimir Lenin established a radical communist program making private ownership of land illegal?

True


Is it true default access modifire?

Default access modifier is package. So when you want a method or object variable to be visible within a package, you don't have to insert an access modifier. For public, private or protected, you need to metion them in your java code.


Electric fields and magnetic fields are both present near a wire carrying current?

False, electric fields and magnetic fields do not often occur together.


What is default in switch is C language?

When in the switch none of the case's is true, the code at the default: is executed.


When you implement an interface method it should be declared as public in java?

This is not necessarily true. The only rules for this are that interface methods may not be private. They may be public, protected, or have the default (blank) access modifier.


In terms of the scientific definition of work neither magnetic fields nor electric fields can do work?

true bruh


What are physics and chemistry both fields of what?

Both are fields of true science, not fantasies.


IS IT TRUE OR FALSE The default slide layouts are set up in portrait orientation.?

False. They are in Landscape orientation by default.


Which is NOT true about sunspots?

They are not related to magnetic fields.


Is it true that a computer will use a default gateway if the destination IP address is on a deffernt network?

Yes, that is what the default gateway is used for.


Is it true or false the default printer is selected for your computer system affects word wrap?

False - word wrap is governed by an option within a word-processing program - not the printer used to create a paper copy.