Enable contrast version

Tutor profile: Bibhuti Bhusan S.

Inactive
Bibhuti Bhusan S.
Tutor for 20 years, Innovator
Tutor Satisfaction Guarantee

Questions

Subject: C++ Programming

TutorMe
Question:

Is it possible to execute any statement before the execution of main() function?

Inactive
Bibhuti Bhusan S.
Answer:

Yes, it is possible. If we instantiate an object of a class globally, then the constructor of the class will be executed before the execution of main() function.

Subject: C Programming

TutorMe
Question:

If a structure has two member variables. One is of type int and the other is of type char. Then what will be the size of the structure when it is created in memory?

Inactive
Bibhuti Bhusan S.
Answer:

The compiler in which it will be tested, if the size of the int is 4 bytes in that compiler, then the size of the structure will be 8 bytes. Though the char takes only 1 byte and int takes 4 bytes, ideally the size of the structure should be 5 bytes, but to align the memory allocation to the word boundary which is normally 4 bytes, the compiler will allocate 8 bytes instead of 5 bytes. If the word boundary will be adjusted to 1 byte using #pragma pack, then the structure will take 5 bytes in memory.

Subject: Physics

TutorMe
Question:

A 5 volt power supply is given. Only using basic electronic components (without using any devices like multimeter, oscilloscope, etc.), how to know if the supply is DC (Direct Current) or AC (Alternating Current).

Inactive
Bibhuti Bhusan S.
Answer:

If we connect a 5 volt LED to the supply and observe if it is glowing. Then reverse the terminals of the LED and connect again. If the LED glow in both cases, then it is an AC supply. If it glow in one way and not in the other way, then it is DC supply.

Contact tutor

Send a message explaining your
needs and Bibhuti Bhusan will reply soon.
Contact Bibhuti Bhusan

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by Zovio
© 2013 - 2021 TutorMe, LLC
High Contrast Mode
On
Off