Chop as in take.
So my examples are correcto?
Type: Posts; User: Inneart
Chop as in take.
So my examples are correcto?
Sorry for being an amateur but I thought a long int is capable of holding up to 32-bit results? So why is a 16-but result defaulting the process?
I see. I didn't know that a simple expression is so complicated. So as long as 1000*1000 is > int's range, even if I declare c as long int the compiler will 'jammed' at the part when 1000 * 1000 =...
So in C language, variables are always passed by duplicating its value?
C = 5
Pass C to a F(x)
C of F(x) duplicates value of C
And if I want it to modify the original C,
C = 5
Pass &C to...
Hmm. So you guys are saying irregardless of the fact that c is being declared as long int, as long as a and b are just int, int multiply by int will force c to adopt int class?
It's a dumb exam question.
Int 32,767.
Long Int at least 4 billion for International ASCII Standard.
So. Why why?! What a lame exam qn.
Hi. I dont understand why. I thought variables could be either passed by Value/Reference?
Reference - Taking reference from original variable's address
Value - Taking concurrent value of...
Hi All,
This may seem trivial but I have totally no idea.
Question: Why does the following code fragment fail to work?
int a = 1000, b = 1000;
Hi All,
I'm doing a project creating a 'Library of Books'.
How should I go about 'removing' a book from my current library if let's say, a user has 'borrowed' a book?
Many thanks!!
No one can help? :(
Hi Folks,
This is the last part of an assignment that I was given.
Suppose you have a substring 'ABCDE...'
and another main string 'ABCDEFGHIJKLMNO......'
How do you identify ALL...
Thanks guys. Really appreciated it.
Thanks laserlight. You are a great help. Bet you got A+ for all your programming modules. Thanks a mil!
Is this it? Hehe.
for(i=0; i<strlen(text)+1; i++)
{
for(j=0; j<i; j++)
{
printf("%c", text[j]);
}
Mhmm... 2 loops...
for(i=0; i<strlen(text); i++)
{
for(j=0; j<strlen(text); j++)
{
printf("%c\n", text[j])
}
I already thought of a simple loop:
for(i=0; i<strlen(text); i++)
{
printf("%s\n", text[i]);
}
But it doesn't work.
Hi Folks,
I'm an undergrad at National University of Singapore. Just have a slight trouble with my current assignment.
How do you gradually print a string say "ABCDEFGH", and you want it to...