i took the c++ programming class 2 semesters ago... so i don't remember much...
Type: Posts; User: viciousv322
i took the c++ programming class 2 semesters ago... so i don't remember much...
sorry...i have no idea what you mean... I am by no means a programmer. I'm just trying to help a friend out.
I know its asking a lot.. but what i'm looking for is actual code.
I'm trying to help a friend but i have no idea how to program... This is the question and i need a program quick...please help..
write a code to determine and display the smallest and largest...
One more question...what is the difference between
'A' and "A"
What does a single quote do compared to a double quote?
That helps...but i would like to know the difference...only because they both sound like the same thing...
Thanks for the help...and especially...the thorough explanations...
One more question regarding arrays...
Assuming that datalist[ ] is a one-dimensional array of type int, which of the...
So what would be needed to make #2 a true statement? How would i be able to make it loop just 5 times?
6. The NULL byte is automatically placed at the end of all arrays. T
I was under the impression that null bytes were used to end strings of arrays, not sure if its ALL arrays...or if its automatic...
The first five....
1. Variables defined after the opening brace belong to the automatic storage class. F
Already explained by Quzah but what is the difference between an automatic and a...
Can someone please tell me the difference between an automatic and a static variable?
Also, what is the difference between
#include "stdio.h" and #include <stdio.h>
please keep in mind that this is only from my study guide...my final is on Monday... Thanks
well, i'm here to learn...I want to know why they are wrong... Since you don't want to give me the answers... I can't ask you to tell me which ones i got right. (Due to the nature of the questions:...
Also, can someone give me a good schooling on the difference between an automatic and a static variable?
so is it 5 correct or 3?
11. Assuming that datalist[ ] is a one-dimensional array of type int, which of the following refers to the value of the third element in the array?
a. *(datalist+2)
b. *(datalist+4) ...
These are questions from my studyguide...and i have included my answers....
1. Variables defined after the opening brace belong to the automatic storage class. T
2. The statement for(;5;) is...
so would it be correct to say the address of buff[0] is buff+0 and &buff[0]
Also, for the declarations are these answers correct?
a. valid
b. invalid
c. invalid
d. invalid
e. invalid
f. ...
I didn't even notice the I was not lowercase...thanks for the colored comments. Are my other answers correct?
What do you mean by... "There is buff"? Is that what the question means by...
I had a few questions from my study guide...for my upcoming final
The first one is on arrays:
How many bytes are in the following array?
char list [20] = "Exercise 1";
My answer for this...
what is the correct way to declare a pointer?
I've looked it up and i think that the correct way is
int *ptr;
however i am also seeing
thanks for the thorough explanation...makes real good sense..
so how come it doesn't increment the 5...or does it...
is it because of the position of the int x=5 (above andOne () ) ?
Would it change if it were below the andOne()??
so it would print out 5 21 ??
Where could i go to learn more about this stuff? I just found this site today...so i will be going through the forums...thanks..
we did a similar problem in class but there was a call function where the increment affected something... does it mean that it would count up from 10 and 20 for 5 times...?
10 21
11 22...
so where could i get such info? I have to turn in this problem in an hour and a half... I tried searching variable scoping but couldn't find anything... I'm sorry if i was unclear... I know that...