C Programmer Interview Questions

3,500 c programmer interview questions shared by candidates

Program 1: they asked me write down code for copy constructor and copy assignment using dynamic allocation. - every bit of the concept Program 2: Polymorphism in detail , virtual function n all Program 3: explicit keyword Question 1: difference between vector and list Question 2: virtual destructor, initializer list, separate out 0,1 from array [0, 1, 0, 1 0, 1, 1, 0, 1, 0] , To clear tieto round one needs to be very clear with the basic concept
avatar

C++ Developer

Interviewed at Tieto

3.9
Feb 19, 2022

Program 1: they asked me write down code for copy constructor and copy assignment using dynamic allocation. - every bit of the concept Program 2: Polymorphism in detail , virtual function n all Program 3: explicit keyword Question 1: difference between vector and list Question 2: virtual destructor, initializer list, separate out 0,1 from array [0, 1, 0, 1 0, 1, 1, 0, 1, 0] , To clear tieto round one needs to be very clear with the basic concept

What will be printed to the Console at the end of this code? int global = 0; Thread t1 = new Thread(() => { int local = 0; while(global < 3) { local += 1; global += 1; } Console.WriteLine(local); }); Thread t2 = new Thread(() => { global += 1; }); t1.Start(); t2.Start();
avatar

Junior C# and .NET developer

Interviewed at NiCE

3.9
Jun 6, 2024

What will be printed to the Console at the end of this code? int global = 0; Thread t1 = new Thread(() => { int local = 0; while(global < 3) { local += 1; global += 1; } Console.WriteLine(local); }); Thread t2 = new Thread(() => { global += 1; }); t1.Start(); t2.Start();

Viewing 3481 - 3490 interview questions

Glassdoor has 3,500 interview questions and reports from C programmer interviews. Prepare for your interview. Get hired. Love your job.