[QUOTE=jalisco;1088000]strange. I get the following error.
strlen.c: In function ‘main’:
strlen.c:9: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’...
Type: Posts; User: RockyMarrone
[QUOTE=jalisco;1088000]strange. I get the following error.
strlen.c: In function ‘main’:
strlen.c:9: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’...
Its is compiling, what kind of error you are facing?
"What does your program output when y is equal to 169?" replied run the program because program was running...
And about another one, this website doesn't owned by you, so where I need to comment...
Statement else ((d1==7) || (d2==7)) should be else if ((d1==7) || (d2==7)).
It will be prime, you can run the program.
May be on your console you can check from 700 or something, your program is displaying prime/nor prime from 1 to 1000
What kind of help you need, that people will write the code for you?
There are so many problems in your code...
1. there are no words in your list... and you try to compare it with input word? from where the compiler will generate a list?????
2. <b> char...
There are so many problems in your code...
1. there are no words in your list... and you try to compare it with input word? from where the compiler will generate a list?????
2. <b> char...
Actually in function main() you were not allocating memory to char* that is why it was getting crashed...
Well Said Adak :)
What we want that u shud try it first, at your end and if u find any problem, after tryin hard u should get in here than..
By this way your learning will be faster.
Ok, I love to use the full reached editor called EMACS, If u want, you can give a try to it.
Ok, One hint use macros for const values
Haaaa , LOL there is a big quote, which we used to say alot in our school dayz.
His friend gave him the code, he want to give the same assignment but with differ in style of coding. M i...
What u can do write a code like this....
#include <stdio.h>
#include <stdlib.h>
int main() {
system("find . -name '*.txt' > output");
return 0;
The simpler or tougher the things will be, when u try to do it.......
But before jumping in to the swimming pool every body thinks that, swimming is a tough job....
Itz upon u what u wanna do u...
Yup dude, but itz a big disaster. We should send some condolence there i think.
It tottaly depends on u dude ,,,,
actually std is a namespace so when u r saying that using namsepsace std; means what ever will be in that namespace will be available to u.....
it depends on u...
ok check this out please
#include <stdio.h>
#include <stdlib.h>
int main() {
const int value = atoi("122");
printf("value == [%d]\n", value);
ok, from the above posts, what i can get u want to display 122 as an int, what u can do
with help of atoi get the "122" as 122 and than display ....
duno it will work or not :(
First of all if u are saying that you want to access private variable of a class (local u said), there are numerous ways to do that....
1... make the class as friends to each other.
2... Make an...
What is the precision value between 0 to 1
What i can suggest is that, you are having any array of integers......
traverse the loop
like ........
from 0 to n
What Mr. Quzah want to tell u is that......
How would you know that, in calling function the array size..... for traversal
example
void print_elements(const int* array, const int...
Please read on wiki about operator precedence in C/ C++
i can give you an example that.
Do u know BODMAS ???
/ is having greater precedence than *,
* is having greater precedence than +,
+...