C & C++ questions and answers
Pointers, memory, templates and the standard library. Page 8 of 9.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 421-480
- What are the differences between Generics in C and Java... and Templates in C?
- What are the rules about using an underscore in a C++ identifier?
- What common algorithms are used for C's rand?
- What does InitGoogleLogging do?
- What does "static" mean in C?
- What does the C compiler do to ensure that different but adjacent memory locations are safe to be used on different threads?
- What does the caret ‘’ mean in C/CLI?
- What does the carries_dependency attribute mean?
- What does the thread_local mean in C11?
- What exactly is stdatomic?
- What happens to a detached thread when main exits?
- What is a C analog of C stdpair?
- What is a first chance exception?
- What is a good open source B-tree implementation in C?
- What is gcnew?
- What is size_t in C?
- What is std::move(), and when should it be used?
- What is stdpromise?
- What is SYCL 1.2?
- What is the best autocomplete/suggest algorithm,datastructure C/C
- What is the best way to convert between char and SystemString in C/CLI
- What is the complexity of set_intersection in C?
- What is the default value for enum variable?
- What is the difference between g++ and gcc?
- What is the difference between ++i and i++?
- What is the difference between packaged_task and async
- what is the difference between set and unordered_set in C?
- What is the difference between stdsort and stdstable_sort?
- What is the difference between 'typedef' and 'using'?
- What is the equivalent of the C++ Pair<L,R> in Java?
- What is the fastest Dijkstra implementation you know in C?
- What is the fastest way to transpose a matrix in C?
- What is the fastest/most efficient way to find the position of the highest set bit msb in an integer in C?
- What is the meaning of 'const' at the end of a member function declaration?
- What is the optimization level g you use while comparing two different algorithms written in C?
- What is the performance of stdatomic vs non-atomic variables?
- What is the relationship between BoostAsio and C20 coroutines?
- What is the right approach when using STL container for median calculation?
- What is the safe way to fill multidimensional array using stdfill?
- What is the strict aliasing rule?
- What is the volatile keyword useful for?
- What Limitation of stdasync is Stroustrup Referring To?
- What should main() return in C and C++?
- What STL algorithm can determine if exactly one item in a container satisfies a predicate?
- What type of heap is used and time complexity of stdpriority_queue in c?
- What would be a good implementation of iota_n missing algorithm from the STL
- What's the best way of ensuring valid object lifespan when using Boost.Asio?
- What's the difference between constexpr and const?
- what's the difference between list.sort and stdsort?
- What's the fastest way to extract non-zero indices from a byte array in C
- What's the nearest substitute for a function pointer in Java?
- When is a thread_local global variable initialized?
- When must you pass io_context to boostasiospawn? C
- When should I need to use stdasyncstdlaunchasync, func instead of func?
- When should the STL algorithms be used instead of using your own?
- When should you use a class vs a struct in C++?
- When to use asynchronous operations in asio
- When to use pointers in C/.NET?
- When to use promise over async or packaged_task?
- When to use stdasync vs stdthreads?
.png&w=3840&q=75)
Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free course