Shortest path in graph: /// /// graph is a function that accepts the node name, and int*. It returns the /// neighbors of the node and the length of the neighbors in the int* /// /// Name of start node /// Name of goal node /// /// The shortest path with format start->...->goal char *shortestPath(Inner *(*graph)(const char *, int *), const char *start, const char *goal) { // int neighborsLength; // Inner *neighbors = graph(start, &neighborsLength); // std::cout << "name: " << neighbors[0].name << neighbors[0].cost << " // length: " << neighborsLength << std::endl; std::cout << "name: " << // neighbors[1].name << neighbors[1].cost << " length: " << neighborsLength // << std::endl; // neighbors = graph(neighbors[0].name.c_str(), &neighborsLength); // std::cout << "name: " << neighbors[0].name << neighbors[0].cost << " // length: " << neighborsLength << std::endl; std::cout << "name: " << // neighbors[1].name << neighbors[1].cost << " length: " << neighborsLength // << std::endl;
Programador De Net C Interview Questions
3,524 programador de net c interview questions shared by candidates
3. HR Round Project Discussion Company-related discussion
General object oriented programming questions, such as as “what’s encapsulation, function overloading”. Some questions pertaining to C, such as “what’s the difference between structs and unions”, “where does execution start in a C program”. Then finally some basic Linux command line questions, “how to create files”, “how to check system resources”, “difference between grep and egrep”. If you use Linux and know C/C++ you will cruise through the first 2 rounds.
who is your role model ?
Related to java,pl/sql,rdbms,python -sum of two lists
Tell me about your project
questions are mainly based on pointers
Segment fault in c/c++ in real example Questions about memory (stack, heap..) Concurrency questions (thread vs process kinda questions) Cache coherence ( more questions about Dragon, Firefly)
There was no interview even
1 . C++ write your own vector 2. CPU cache , TLB 3. Multithreading synchronized notify all 4. Memory leak and how to detect and avoid
Viewing 2271 - 2280 interview questions