yah i got it fixed thanks
Type: Posts; User: genie
yah i got it fixed thanks
here almost done it but prints weird characters along
#include <stdio.h>
int main(void){
char name[21];
char surname[21];
char buffer[46];
int a,b;
printf("Please Enter your first...
for loop i want it just to get name like from variable 0 untill null terminator and in the buffer i want it to save the first name till i print both in the end
i m trying to write my own function of strcpy and strcat but 2nd character doesnt even getoutputed
#include <stdio.h>
int main(void){
char name[21];
char surname[21];
char buffer[46];...
thanks for help
yah srry i mean the ('\0') not 0 typing error srry i wanted to ask like u got an array of like 50 element and u do a!='\0' that wont end on 49 ? on the 48 array ?and if u do a='\0' that mean it will...
i wanted to ask like in some codes i see like char !='0'
that means or ='0' whats that null character all about ? srry for my stupid question i m still a begineer.
java sucks i ll study after C >> C++>>asm >> maybe mysql oracle after that
pointers point allocation in memory like lets say u got 1 mac apple and u wrote a txt that my mac book is in bal bla bla that is like a pointer it points there so it doesnt make ur pc take much memory
yes thanks didnt notice that i fixed that also exit function didnt need a brace after it but problem is it keeps exuting even after 3rd line how can i make at at 3rd question it will exit ?
genie
it getchar getcharacter from your keyboard to exit :P
Hello guys i just started learning C 1 week ago i m trying to do a program for guessing i done it but i wanna try make it like if user put 3 times wrong program will close i did but i have 2 errors...