01.03.2013 Views

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#include <br />

#include <br />

int main(void)<br />

{ clrscr();<br />

}<br />

char destination[25];<br />

char *blank = " ", *c = "C++", *turbo = "Turbo";<br />

strcpy(destination, turbo);<br />

strcat(destination, blank);<br />

strcat(destination, c);<br />

printf("%s\n", destination);<br />

getch();<br />

return 0;<br />

strncat – SeerTdes ori striqoni, Tanac meore striqonidan<br />

gadakopirdes ara umetes n simbolo.<br />

gansazRvra: char *strncat(s1,s2,n)<br />

char *s1, *s2;<br />

int n;<br />

magaliTi 2:<br />

/*SeerTdes ori striqoni, Tanac meore striqonidan gadakopirdes<br />

ara umetes n simbolo */<br />

#include <br />

#include <br />

#include <br />

int main(void)<br />

{<br />

clrscr();<br />

char destination[25];<br />

char *source = "structured ";<br />

strcpy(destination, "programming");<br />

strncat(destination, source, 11);<br />

printf("%s\n", destination);<br />

getch();<br />

102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!