POINTERS AND ARRAY
pointer menunjukan alamat atau isi dri alamat itu sndiri
kalau pakai "*" di scanf akan menunjukan alamatnya
nah kalau pakai "&" akan menjujukan isi dri alamat tersebut
pointer itu ada yg satu, two and three dimensional
two dimensional itu kek row kali kolom
klo three yaa row kolom sama lebar.
kami juga belajar tentang string.
–strlen()
–strcpy(s1,s2)
–strncpy(s1,s2,n)
–strcat(s1,s2)
–strncat(s1,s2,n)
–strcmp(s1,s2)
–strcpy(s1,s2)
–strncpy(s1,s2,n)
–strcat(s1,s2)
–strncat(s1,s2,n)
–strcmp(s1,s2)
Return a value of string length; excluded null char
Copy s2 to s1
Copy first n characters of s2 to s1
Adding string s2 to the end of string s1
Adding n characters of string s2 to the end of string s1
Comparing the value of string s1 and s2, if similar returning 0–strlen()
Return a value of string length; excluded null char
Copy s2 to s1
Copy first n characters of s2 to s1
Adding string s2 to the end of string s1
Adding n characters of string s2 to the end of string s1
Comparing the value of string s1 and s2, if similar returning
sebelumnya kami belajar repetition, sperti for, do...while, iff.. else.
Comments
Post a Comment