Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

%.*s in c

example:
printf("%.*s",3,"hello");

output:hel
here 3 represents the length of the string to be printed in the "hello string".
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+6 =