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();
C Programmer Interview Questions
3,500 c programmer interview questions shared by candidates
What is the difference between struct and union keywords in C ?
Implement the Singleton design pattern.
I had to complete an online challenge on C++ coding. The test involved multiple bullet point question plus 2/3 coding exercises to be completed within a time limit.
Find LCA of 2 nodes in a given binary tree, cycle detection in a linked list.
Explain pillars of oops in detail.
What are Virtual functions and friend functions.
Class, methods, oops, data structure
A cosa serve il volatile in C
Q1. Quick sort algorithm and Merge sort algorithm and which one is better on linked list. Q2. Dynamic memory allocation and use cases of malloc, calloc, realloc and new. Q3. Some codes were given on pointers and few questions were asked. Q4. One Problem was given which required topological sort approach.
Viewing 3491 - 3500 interview questions