Khaled Alshaya's user avatar
Khaled Alshaya's user avatar
Khaled Alshaya's user avatar
Khaled Alshaya
  • Member for 14 years, 3 months
  • Last seen more than a month ago
797 votes
Accepted

What is lexical scope?

469 votes

How can I pad an int with leading zeros when using cout << operator?

334 votes
Accepted

What is the order of evaluation in a member initializer list?

294 votes
Accepted

How to append a char to a std::string?

262 votes

What is CHAR_BIT?

166 votes

Getting a directory name from a filename

114 votes
Accepted

Delete all items from a c++ std::vector

105 votes
Accepted

How to determine the Boost version on a system?

88 votes
Accepted

initial value of int array in C

80 votes
Accepted

C++ Object without new

76 votes
Accepted

Difference between pointer to a reference and reference to a pointer

72 votes

C++ std::accumulate doesn't give the expected sum

71 votes

Undefined, unspecified and implementation-defined behavior

71 votes

Using C++ filestreams (fstream), how can you determine the size of a file?

60 votes
Accepted

How does a C++ reference look, memory-wise?

51 votes
Accepted

c++: ifstream open problem with passing a string for text file name

51 votes
Accepted

STL name for the "map" functional programming function

47 votes

const reference parameters

46 votes

ifstream: how to tell if specified file doesn't exist

39 votes
Accepted

Number of sub-sequences in a given sequence

38 votes
Accepted

Multidimensional variable size array in C++

38 votes
Accepted

Can you declare a pointer on the heap?

36 votes
Accepted

#include iostream in C?

34 votes
Accepted

How can I implement the piano key frequency function in C#?

34 votes
Accepted

which cast is faster static_cast<int> () or int()

33 votes
Accepted

How to round down a double to the nearest smaller int in C?

32 votes

Is it good practice to make getters and setters inline?

30 votes
Accepted

Why or why not should I use 'UL' to specify unsigned long?

30 votes

How can I implement a 'main' method in a class in C++?

29 votes
Accepted

Function which returns an unknown type

1
2 3 4 5
17