Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
A more advanced data type is the structure; here we can define a template as a collection of different variables e.g. struct birthdate { int month; int day; int year; }; Here the template birthdate consists of three separate content variables namely month , day , year .We can access each part of the structure by means of the dot '.' operator i.e. after we have allocated the variable to be used to hold the structure. struct birthdate john; We can access all the details i.e. john.month = 12; john.day = 28; john.year = 52; This is identical to using a two dimensional array to hold the values john[0][0] could hold month john[0][1] could hold day john[1][0] could hold year
However using a structure template we can use different types in the same structure struct details { int month; int day; int year; char * name; }; It is possible to use structures defined as pointers, if you wish to want to use the actual address. main() { struct *records { int month; int day; int year; char * name; }; Here we have a structure assigned to a pointer record. In order to access the content month we use must dereference the pointer and access the element i.e. (*records).month This is often replaced with a -> symbol (minus followed by >) i.e. records -> month.
What are the debugging methods you employ while came across a problem? A: Debugging with tools such as: 1. DBG, GDB ,Forte, Visual Studio. 2. Using tusc to trace
how to define a array of structure
A: Use references when you can use, and use pointers when you have to. References are generally preferred over pointers whenever you don't require "reseating". Usually this mean
Define pure virtual function or abstract class?
Question 1 . Write a brief note on Aggregation Question 2 . Discuss briefly on constructors Question 3 . What are the important advantages of Inheritance? Question 4 .
write a c++ program which finds minimum of three numbers
how to make the coding
#include #include #include using namespace std; #define MAX 5 #define INF (1 #define DEBUG if(0) #define pii pair #define pb(x) push_back(x) class
Write a program consisting of two functions (plus main). The first function should read in a number and then pass this back to main. This value should then be passed into a secon
Explain the Bitwise-Inclusive-OR Operator: |? The bitwise-inclusive-OR operator (|) contrast each bit of its first operand to the corresponding bit of its second operand and if
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd