Answer- No, we need to use free() of C language for the same. Question-26. What is a friend function ? Answer- A function which is not a member of the class but still can access all the member of the class is called so. To make it happen we need to declare within the required...
Crack IT interview, freshers you find technical interview question answers on C, Java and DSA to crack CS IT interviews. These are frequently asked technical interview questions.
Question:In the code below, the atexit() function is not being called. Can you tell why? #include<stdio.h> void func(void) { printf("\n Cleanup function called \n"); return; } int main(void) { int i = 0; atexit(func); for(;i<0xffffff;i++); _exit(0); } Answer:This be...
IT interview questions and answers and programming tutorials on C, Java, Data Structures and Algorithms. Most important technical help for IT professionals.
Why this C++ programming question?Template metaprogramming in C++ is an advanced topic, so this question is one of the c++ interview questions for experienced professionals and should not be posed to junior interview candidates. However, for senior candidates, this question can be a good indicator ...
A candidate who needs some help along the way but communicates clearly can be even better than a candidate who breezes through the question. Understand what kind of problem it is. There are two types of problems: Coding. The interviewer wants to see you write clean, efficient code for a...
1. Using LINQ for Filtering and Sorting Data This question tests your understanding and application of LINQ (Language Integrated Query), a powerful feature in C# that is used for working with data. Task:Write a C# method calledFilterAndSortthat takes a list of students (objects) and returns ...
Interview question #4 Normal palindrome is defined as a string that reads the same backwards as forwards, for example "abccba". Chunked palindrome is defined as a string that you can split into chunks and it will form a palindrome. For example, "volvo". You can split it into (vo)(l)...
Advanced Programming Interview Questions Conclusion Programming Interview Question FAQs Whether you're looking for a new opportunity in software development or data analysis or a hiring manager who will interrogate a candidate for a job opening in your company, knowing common programming interview question...
Question 7:Question:Write a program that calculates the factorial of a user-entered number using awhileloop.Expected Output: Enter a number: 5 The factorial of 5 is 120. Question 8:Question:Create a C program that checks if a user-entered number is a prime number using aforloop.Expected ...