C programming Questions
C programming For Recent college graduates and professionals for job interview. : ------------- some small C programs are given asked to tell the function/errors etc. one of the question(last in the p...
C++ Technical Interview Questions
C programming For Recent college graduates and professionals for job interview. : ------------- some small C programs are given asked to tell the function/errors etc. one of the question(last in the p...
C Interview Questions Paper: 1 What is the difference between Char a[ ]="string" and char a="String" 2 What is wrong with the code? The code was for conversion from Celsius to Fahrenheit : degF =5/9(c...
Implementing itoa function is a popular interview question. Here’s one implementation from SAP. char itoa(int value) { int count, / number of characters in string / i, / loop control variable / sign; ...
1 How do you write a program which produces its own source code as its output? 2. How can I find the day of the week given the date? 3. Why doesn’t C have nested functions? 4. What is the most efficie...
Take a simple C Online Test Check your basic c skills, by taking a sample test here with us to know how good you stand on a given C programming language test. [WATU 2]...
You must be able to produce simple clean linked list implementations quickly. Implement Insert and Delete for singly-linked linked list sorted linked list circular linked list int Insert(node head, in...
Agile C++ Interview Preparation Questions: (1)the difference b/w pure virtual fn.& virtual fn. (a)pure virtual function. is initialized to zero. (b) (2)virtual destructor's are used for (a) (3)find le...
Carritor C Interview Questions For Job Seekers to Prepare for the Interview 1 Struct x { int i; char c; } union y{ struct x a; double d; }; printf("%d",sizeof(union y)); a)8 b)5 c)4 d)1 ans:8 2 struct...
You are given an array with integers between 1 and 1,000,000. One integer is in the array twice. How can you determine which one? Can you think of a way to do it using little extra memory. You are giv...
1 What are the total number of lines written in C/C++? What is the most complicated/valuable program written in C/C++? 2. What compiler was used? 3. Have you studied buses? What types? 4. Have you stu...
Can we generate a C++ source code from the binary file? What are inline functions? What is “strstream” ? What is encapsulation?? Containing and hiding information about an object, such as inte al data...
Sasken C Interview Questions for Job Interview Seekers 1) If u have a linked list library, how do u design stack and queue using it; write pseudo code. 2) What are static variables and functions? 3) W...
An array is a contiguous sequence of elements with a defined array type, while a pointer is an object holding an address. In many expressions an array converts to a pointer to its first element, which...
Undefined behavior means the language imposes no requirements on the program’s behavior for that operation. Examples include accessing beyond an array, dereferencing an invalid pointer, and signed int...
Resource acquisition is initialization binds a resource’s lifetime to an object whose destructor performs cleanup. Stack unwinding destroys fully constructed local objects when exceptions propagate, m...
Use std::unique_ptr for exclusive dynamic ownership and transfer ownership explicitly with move semantics. Use std::shared_ptr only when independently managed shared ownership is actually required. A ...
An ordinary local variable with automatic storage duration ceases to exist when the function returns. A pointer to it then dangles, and accessing the former object through that pointer is invalid even...
When an object is destroyed through a base pointer, a public virtual destructor permits the derived destructor to run correctly. Deleting a derived object through a base pointer without a suitable vir...
Test your aptitude, quantitative reasoning, and core programming skills under timed conditions.
Start Placement Test