abt c [英] abt c
问题描述
可以在任何人打印名称而不使用
printf语句中的quotqtion标记(")????
can any one print there name without using quotqtion marks("") in
printf statement..????
推荐答案
nanduaécrit:
nandu a écrit :
可以在任何人打印名称而不在
printf语句.. ????
can any one print there name without using quotqtion marks("") in
printf statement..????
做自己的作业
Do your own homework
nandu skrev:
nandu skrev:
可以在任何人打印名称而不使用
printf语句中的quotqtion标记(")??? ?
can any one print there name without using quotqtion marks("") in
printf statement..????
#include< stdio.h>
int main(无效)
{
char s [] = {65,117,103,117,115,116,0};
puts(s);
返回0;
}
八月
#include <stdio.h>
int main(void)
{
char s[] = {65, 117, 103, 117, 115, 116, 0};
puts(s);
return 0;
}
August
nandu说:
nandu said:
可以在不使用quotqtion标记的情况下打印任何名称(&qu ot;")在
printf语句中.. ????
can any one print there name without using quotqtion marks("") in
printf statement..????
printf函数是一个函数,而不是一个语句。
你问的问题没有任何价值。报价标记是免费提供的。
即使大型机也有它们。所以没有理由不使用它们。不过,
只是为了表示愿意,以下程序将打印出第一个
32765个字符的任何你想要的名字:
>
#include< stdio.h>
int main(无效)
{
char buf [ 32767];
fgets(buf,sizeof buf,stdin)&& fputs(buf,stdout);
返回0;
}
-
Richard Heathfield
Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk
电子邮件:rjh在上述域名中, - www。
The printf function is a function, not a statement.
The question you ask has no merit. Quotation marks are freely available.
Even mainframes have them. So there is no reason not to use them. Still,
just to show willing, the following program will print up to the first
32765 characters of any name you care to give it:
#include <stdio.h>
int main(void)
{
char buf[32767];
fgets(buf, sizeof buf, stdin) && fputs(buf, stdout);
return 0;
}
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
这篇关于abt c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!