New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Is there any performance difference between i++ and i=i+1 ?
c++
loops
0 Votes
5 Answers
1st Feb 2016, 4:03 AM
Deepak C R
What is the difference between rand() and srand()??? please clarify...
c++
rand
3 Votes
3 Answers
31st Jan 2016, 7:58 AM
RAVI KUMAR G
Could someone explain me please, why is useful a pointer to a class' object, if I can simply use the name of the object in the class?
c++
classes
pointers
1 Vote
4 Answers
30th Jan 2016, 4:33 PM
Matias Beraldo Fernandez
Hi I downloaded codeblocks mingw from the given website, after installing that it shows that invalid compiler pls anyone assist me.
c++
1 Vote
1 Answer
29th Jan 2016, 4:30 AM
Mohammed Ibrahim
What does GNU stands for?
c++
0 Votes
2 Answers
28th Jan 2016, 7:26 PM
brian sadock
What is diff between java and c++?
c++
java
0 Votes
3 Answers
23rd Jan 2016, 4:38 AM
Akash
Hi, what is cout? What is it for?
c++
1 Vote
6 Answers
23rd Jan 2016, 1:10 AM
Andres Ned
Can I return different types other than void and int? Maybe char, string, float, double etc?
c++
functions
3 Votes
7 Answers
22nd Jan 2016, 1:31 AM
moise
If it print a random no. Then how can we get same no. Each time?
c++
rand
3 Votes
4 Answers
21st Jan 2016, 6:25 AM
Ajit
What exactly is the point of the "return"?
c++
functions
2 Votes
5 Answers
19th Jan 2016, 6:52 AM
Noble S. Ant
What about memory occupied by templates?
c++
templates
1 Vote
2 Answers
18th Jan 2016, 11:20 AM
chintan patel
What is the difference between argument and parameter?
c++
function-arguments
functions
1 Vote
2 Answers
17th Jan 2016, 7:03 PM
Khan
What is the cmath library?
c++
1 Vote
4 Answers
15th Jan 2016, 5:50 PM
Ben Rae
I don't believe I understand the modulus operator very well.
c++
operators
1 Vote
6 Answers
15th Jan 2016, 4:13 AM
Sandra Pérez
Could you please clarify a bit more about #ifndef?How could be defined header file twice if we don't put #ifndef as we can't have two header files with the same names?
c++
classes
1 Vote
3 Answers
12th Jan 2016, 4:42 PM
Ivailo Ivanov
How would you write the values a 3 dimensional array?
arrays
c++
0 Votes
2 Answers
11th Jan 2016, 8:41 PM
Luke
I can not understand difference between Class and Struct.
c++
classes
structs
32 Votes
42 Answers
9th Jan 2016, 12:39 PM
dani rzv
Why would you need to use the not operator?
c++
operators
0 Votes
2 Answers
7th Jan 2016, 6:12 AM
Jackson
So x++ and ++x are essentially both the same as x=x+1 but the postfix is the only one that changes the value? Or no? I think I missed something.
c++
operators
4 Votes
8 Answers
6th Jan 2016, 7:47 PM
Geoff williams
So "virtual void attack() = 0" = "virtual void attack(){}"?
abstract-classes
c++
0 Votes
2 Answers
5th Jan 2016, 2:18 AM
Yangmo Zhu
What happens if I just declare the variable "sum" but don't put the initial value? For instance, if instead of saying "int sum = 0;" , I said " int sum;"
c++
variables
1 Vote
3 Answers
3rd Jan 2016, 10:16 PM
Lucas
If a template type can take any data type, why would we need multiple template types? Why not just make one template type and use it for everything?
c++
templates
2 Votes
1 Answer
3rd Jan 2016, 6:26 PM
Taylor Street
Can a function be called from another function that is not main?
c++
functions
4 Votes
16 Answers
3rd Jan 2016, 4:48 PM
Riccarda
If a pointer is supposed to be passed, why is the friend function's argument (MyClass &obj), not (MyClass *obj) ?
c++
classes
friend
2 Votes
3 Answers
3rd Jan 2016, 2:01 PM
Tesik
hi guys can anyone tell me what is the use of namespace with an example and why only namespace std not namespace cout and how I know which type of namespace s are used writing an program?
c++
2 Votes
3 Answers
1st Jan 2016, 1:53 AM
sivasaiprakash
how to get Return from a Function created as Private?
c++
functions
0 Votes
1 Answer
31st Dec 2015, 9:01 AM
Gaurav Kumar
if a=1,b=0 b=a++ + ++a + ++a what is the final value of a and b?
c++
operators
0 Votes
4 Answers
30th Dec 2015, 11:05 AM
Deepanshu Gupta
Why would İ prefer to use a variable rather than a constant?
c++
constants
0 Votes
6 Answers
29th Dec 2015, 6:25 PM
Kevin Kiambe
Can we make an array and read the randomly generated values one by one into the array using a for loop ??
c++
loops
rand
0 Votes
1 Answer
27th Dec 2015, 2:09 PM
Abhishek Raj
if we will not declare how many elememt an array will story (int a[];)than it will hold unlimited value?
arrays
c++
1 Vote
1 Answer
26th Dec 2015, 4:06 AM
Akarsh
Why would you need to use multiple "<<" in one cout line?
c++
cout
0 Votes
4 Answers
24th Dec 2015, 8:45 PM
Jason Elkins
Does endl and '/n' serve the same purpose?
c++
cout
3 Votes
17 Answers
22nd Dec 2015, 4:12 AM
Saksham Sneh
What is the meaning of 'declare a function'?
c++
functions
0 Votes
2 Answers
21st Dec 2015, 1:02 PM
Prashant Bharduaja
What happens if you don't put endl?
c++
variables
0 Votes
6 Answers
18th Dec 2015, 2:52 AM
Corbin
Which OS is best for C++ programming, Ubuntu (Linux) or Windows 10?
c++
1 Vote
8 Answers
16th Dec 2015, 4:43 AM
Brian
Define data types
c++
data-types
1 Vote
3 Answers
11th Dec 2015, 2:10 PM
Arslan
Can any one tell me what is static typing?
c++
0 Votes
1 Answer
11th Dec 2015, 3:27 AM
Rutvik Kapade
Why we start the index of array from 0?
arrays
c++
0 Votes
2 Answers
6th Dec 2015, 6:38 PM
PRIYANKA YAWALKAR
So guys... I've been making a custom calc and I was wondering how I would add different operations? Like how do i make it so I can choose an operation?
c++
operators
0 Votes
1 Answer
4th Dec 2015, 8:34 AM
Chandler
What is type checking?
c++
0 Votes
1 Answer
28th Nov 2015, 1:45 AM
Arjoon Srikanth
What are the defaults? If you just state a variable int x; What is the default size and is it automatically signed or unsigned?
c++
data-types
1 Vote
4 Answers
2nd Nov 2015, 4:51 PM
OTheB
What happens if you input a negative number to an unsigned integer?
c++
data-types
0 Votes
3 Answers
28th Oct 2015, 10:26 PM
Jakob Quisenberry
Difference between cout and cin?
c++
variables
3 Votes
34 Answers
28th Oct 2015, 4:43 PM
SAKET VERMA
Can single line comment begin and end like a multi line comment?
c++
comments
0 Votes
8 Answers
26th Oct 2015, 4:33 PM
kiranramesh
Can anyone tell the code to print the Fibonacci series ?
c++
functions
0 Votes
2 Answers
24th Oct 2015, 6:45 PM
Varun Subramanian
What's the precise definition of a "class member"?
c++
classes
1 Vote
3 Answers
19th Oct 2015, 3:57 PM
Colin Colby
What's the difference between for and while loop? does while loop keep running until the condition is true?
c++
loops
0 Votes
4 Answers
9th Oct 2015, 2:47 PM
Shashwat Pandey
Will adding serious amounts of comments slow down the program? I mean like a novel length like the types of: war and peace.
c++
comments
0 Votes
3 Answers
18th Sep 2015, 5:07 PM
Henrik Karlberg
Where can I find a good (and easy to install) C++ compiler for mac?
c++
compiler
0 Votes
5 Answers
23rd Aug 2015, 7:39 PM
Ciara Adkins
hi guys, i m just a beginner in c++, this parts i means Pointers is difficult for me, i dont understand clearly and where can i use this if i built app. Is it important in c++ ?
c++
pointers
3 Votes
7 Answers
9th Aug 2015, 11:37 AM
Tuang Hau Mun
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
876
877
878
Next >
Hot today
How to create animation in Python?
2 Votes
please help me emotionally
1 Votes
Why are not all the codes showing?
0 Votes
While loop problem maybe?
2 Votes
What next?
0 Votes
How to stop pop up menu from qt table horizontal header
0 Votes
Pls where can i download mobile phone stock pictures for e-commerce site?
0 Votes
Having issues with the "JavaScript Intermediate" course!
1 Votes
Which programming language is most important for learning hacking or cybersecurity?
0 Votes
please how to i complete the chatbot v1.0 n python course
0 Votes