Woaw, it works beautifully, strcpy is exactly what i asked for, thanks again Dave your great :)
Type: Posts; User: tzpb8
Woaw, it works beautifully, strcpy is exactly what i asked for, thanks again Dave your great :)
I wanted to learn pointers and arrays better but now i'm moving on to structers so thanks for the rewrite Dave but sence i cant at variables declaration inside structers assign values, how can i...
I didn't mean to cause frustration sorry if i did, so if i write my loops on one line and statements (however small or large they might be) on another line and write like i did in#4, i would write...
Nani means "what?" though i dont know what ¿Qué? means so i googled it:
When used with the verb ser, cuál and qué can both mean "what," but they are not interchangeable. Cuál is more common, and is...
I dont know much about linux but if you write it correctly maybe it will workout so here is what you can try to compile it as:
#include <stdio.h>
int main(void)
{
printf("\n\nHello...
@Salem: I use the editor that comes with Dev-C++ 4.9.9.2.
It is not the editor.. its just my taste, see i even forgot to add line breaks within the blank() function for printing out an almost clear...
@siavoshkc: that works also, cool :) now i think i know how to do it both ways.
Though you forgot to edit the arrays passed to not be pointers to pointer arrays but to just pointer arrays like this:...
Great thank you, it works :)
How is this formating? (it was really hard for me to split the for loops and printf functions to seperate lines :()
/*Pointer array test.*/
#include <stdio.h>...
I can only get the first element of an array to work when passed to another function.
If i try to print out the next element of that array in that function i dont get the result i expected (the...
I see, wanted to master pointers but i guess its to early :)
If it's a problem i can stop writing numbers in function names, just thought it looked nicer.. like how you like to have whitespace
yeah i know lol.. thats why i asked if i'm on to something
'array' declared as function returning a function -is one of the warning i got
jibberish makes more sence if mixed with logic
an pointer array of three pointer types pointing to function type int named sUP3r with the parameter blue int type
Think i'm on to something?
#include <stdio.h>
int sUP3r(int a);
int g1uE(int a);
int main(void){
int a = 18;
int (* array[3]) (int sUP3r) (int blue);
Oooh but when you say name is a type you make me think it's either int char or float etc, what i meant with name is the name of the pointer itself. You mean that name is an array? when you say name...
function pointer is: datatype (* name) (parameter types)
array pointer is simply: datatype (* name) []
Right? or can i write it in another way without parenthesis? so i can figure out how...
Thanks, i got alittle lost after reading "declaring" and also after reading about function pointers this much so i wanted to atleast understand how to define them :)
Though "
int (* a) []; // a is...
This is how you define/declare a function pointer? e.g: int (* name) (parameters) ?
pointers hold memory addresses nothing more right? so a function pointer would be the same i reconned.
I dont know what that is if you say declaration, no.
Defining a pointer: a[] is the same as *a, and *a is a pointer, So is (* a) [] really an array?
And what memory address do assign to that function pointer?
So i can pass the "return" value of a function to another function with a function pointer?
About my coding style.. it comes from html.. wrote some sites and i think i have a clear way of seperating tables/functions, which i think is most important, sence everything is written in blocks and...
Oooh i see simple enough :)