i've changed it but still it isn't working...
k=0;
while (i>=0 && *(str+i)!='\0')
{
Type: Posts; User: nightingale
i've changed it but still it isn't working...
k=0;
while (i>=0 && *(str+i)!='\0')
{
i've been trying to make this function work... but to no avail :(
pal (int *str)
{
int i=0,k,flag;
The way i view it:
int i; /* declaration */
int i = 0; /* declaration and initialization */
i = 0; /* assigning a value to i */
My version is not working. that's why i asked for another version.
#include "stdio.h"
#include "conio.h"
#define N 30
main()
The foll prg will look like this
*
* *
* * *
* * * *
u can use it n make the necessary modifications
thx a lot to all of u for ur help
Can't understand :(
i don't wanna use toupper coz i haven't used it before n hence i should not/ can't use it.
Thx Salem. got another thing i don't quite understand
what does argc and *argv[] means n what do they do.
i've seen in a FAQ, they've used toupper to do it. i don't want to use toupper. i just want a simple way to do it. thx
Write a program to read a character and print it in reverse case.
Do we have to use ascii code in this question? is there another way of doing it without using ascii?
Got another prg: write a program to concatenate 2 strings. Apart from usin strcat, is there another simple way of doing it?
Got a program to multiply 2 matrices. Below is my source code:
#include "stdio.h"
#include "conio.h"
void main()
Thx. i've came across smething else
int main(void)
What's this?
What’s the difference between:
main()
int main()
void main()
is there another way of initializing main?
Thx :)
Money? n Salem, thanks a lot. Salem, sry for using "urgent". it was urgent for me...
if anyone else got any suggestion on this topic, plz don't hesitate to post your reply. thanks;)
:) another question: i've written a prg to detect prime number. well, using VC, the largest number i can detect is a 11digit one. using C, well, it's only a 10 digit number. i want to detect at...
Can anyone help me on this one plz
I can’t understand how to get the result
#Define product(x) (x*x)
main()
{
int i=3, j, k;
j = product (i++);
k= product (++i);
lol. that's what i meant too.;)
thx but don't think i'll use C anymore coz exams will end in 2 weeks time and next semester we're doing C++. ;) think it's much better than C.:)
in fact we're talking about C. the old version. well, we've started with it at uni and next semester we're doing C++. :)
hey, i thought // was used in C++ and not in C. i don't think i can use // in C. well, that's what i learnt!
Once more, thx to all of you. i don't know how you find time to help us but u're...
At uni, my lecturer makes us comment on every bit of code. i think he's doing this coz there's many students who've never done programming before. i just love programming!!! (though i get some...
Why do u say : "another :p thread..."?
i just wanted to know what u thought was better ;) i'm still a beginner and i want to know from pros like u.
According to you, how do you indent your code and comments? how do you write comments?
e.g
/*Variable declaration*/
int i;
or
Btw, i've noticed some of u have really cute avatars.