C plus plus programs and answers
Puducherry Current Affairs. Punjab Current Affairs. Rajasthan Current Affairs. Sikkim Current Affairs. Tamil Nadu Current Affairs.
Telangana Current Affairs. Tripura Current Affairs. Uttarakhand Current Affairs. Uttar Pradesh Current Affairs. West Bengal Current Affairs. November October September August July June May April Agriculture Current Affairs. Bank Current Affairs. Committees and Commissions Current Affairs. Memorandum of Understanding Current Affairs. Economic Survey Currrent Affairs. Environment Current Affairs. Festivals Current Affairs.
Finance Current Affairs. Health Current Affairs. NOTE : you can use an abstract class only act as a base class for deriving other classes but does not create objects. Manipulator function is special stream functions that change certain characteristics of input and output.
All the manipulator functions prototypes are defined in the. It is a special pointer that exists for a class while a non-static Member function is executing. It is used to access the address of the Class itself and may return data items to the caller. Each stream is associated with a particular class that contains member functions and definitions for dealing with that particular kind of data flow.
List of frequently asked IBM Explore Now! Interview Questions. What are the features in c programming? C programming language supports multiple features. They are Middle-Level Programming Language: C programming supports high-level features like Pointers, Structures data structures and as well as it will supports assembly code also so we conclude c as a middle level programming language. Structured oriented programming Language : C program is structure oriented programming language means it will execute the statement in sequence Modularity: In c programming language we can reduce the more line number of code by using modularity Portability: C programming language is platform-independent means with minor modifications we can reuse the code on different platforms also.
Powerful Data Structure: With the help of data structures we can implement the complex application easily. What are the data types in c? Data types divided into two types. They are Predefined data types User defined data types Predefined Data types: Int, char, float and double are the predefined data types User-defined data types: Arrays, Pointers, strings, and structures are user-defined data types.
Types of errors in c? Errors in c programming are divided in two types. What are the Compile Time Errors? What are the Run time errors? Here we can discuss the compile-time they are Segmentation Fault: Un authorized memory access called as segmentation fault Bus Error: Memory is not at all existing still programmer trying to access it.
What is a function in c? Types of Functions? What are Pre Defined Functions? What is User Defined Functions? They are below Function declaration Function definition Function call. Control Statements or Control Flow? Control statements are divided into three types. Conditional statements in c? These statements are decision making statements in source code. This are several types if statements if-else statement if-else if —else statement nested if statement switch-case statement.
Iterative loop statements in c? When we are going to use repeated code we will use iterative statements. These are several types for loop While loop do-while loop.
Jump statements in c? These are several types break continue goto. What is a header file? What are the translator in c? What is assembler? It convert high level lang. Compiler takes the program as a whole and converts it into object code before execution.
Char-character data type. Float-floating point value. Double-a double precision floting point value. Void-valueless special purpose type. Static variable static variable are declared by writing keyword static in front of the declaration.
Can we declare variable anywhare in c? How many keywords used in c? What is register variable in c? What is extern in c? What are the token in c program? Difference between declaration and definition? Does c have a boolean variable type? What is the basic component of the IEEE floating point? Why we use trigraph character?
What is the keyword? What is constant? What is a function? The algorithm provides a step by step procedure on how a solution can be derived. What is the use of semicolon? It is possible to create your own header file? What is the difference between the text file and the header file? What are the different types of errors? What is the run time error?
What are logical error and how does it differ from syntax error? What are the control structures? What is fall down property? What are the jumping statements in c lang. It is used to transfer the program control from one location to other location. Can we used continue statement without using loop? No,it can transfer programs control within the function only. Array is a collection of same data type elements.
Arrays are always fixed. How to creat array? Can we change the array size at run time? No,we can not change the array size.
What is the default value of array? For byte ,short ,long ,int default value id 0. For boolen default value is false. For object default value is null. When you pass array to an function what actually pass? Can you return an array in c?
How does an array work? What is array indexing. How arrays are different from a normal variables. What is dimensional array? What is the class? What is a reference? Reference is another name for a variable used in the program. FOR example, I have a variable called x x Right now x is a variable let us suppose it is present at memory address Difference between pointer and reference? Pointer contains the address of a variable. Let us take an example below : A variable x we have, stored at address Ptr contains the address of a variable.
Once a reference is created for a variable, it cant be made to point to some other variable, whereas a pointer can be referred to some other variable. Reference must be initialized when created, whereas no such restriction is there in the case of the pointer. What is an access specifier? What are the different types of specifiers? What is encapsulation? What are inline functions? It also stores argument of function in stack in above case x wil be stored in stack. CPU then executes function code, stores the value returned by function in some memory location and returns the control to function who called this function in above case control goes back to main.
This whole set of above process takes some time to execute called as execution time. Difference between actual and formal parameters? Haryana Current Affairs.
Himachal Pradesh Current Affairs. Jharkhand Current Affairs. Karnataka Current Affairs. Kerala Current Affairs. Madhya Pradesh Current Affairs. Maharashtra Current Affairs. Manipur Current Affairs. Meghalaya Current Affairs. Mizoram Current Affairs. Nagaland Current Affairs. Odisha Current Affairs. Puducherry Current Affairs. Punjab Current Affairs. Rajasthan Current Affairs. Sikkim Current Affairs.
Tamil Nadu Current Affairs. Telangana Current Affairs. Tripura Current Affairs. Uttarakhand Current Affairs. Uttar Pradesh Current Affairs. West Bengal Current Affairs. November October September August July June May
0コメント