无
包括两行:第一行为“Hello world!”第二行为printf(“Hello world!”)调用后的返回值。
public class Main{ public static void main(String[] args){ System.out.println("Hello world!"); System.out.println("Hello world!".length()); } }
实际上java里返回的是打印流。。
print("Hello world!") print(len("Hello world!"))
#include<iostream> int main(){ int a = printf("Hello world!"); printf("\n"); std::cout<<a<<std::endl; return 0; }
#include <iostream> using namespace std; int main() { int t = printf("Hello world!"); cout << endl; cout << t << endl; return 0; }
#include <stdio.h> int main() { int a = 0; printf("\n%d\n",a=printf("Hello world!")); return 0; }
int main() { int a = printf("Hello world!"); printf("\n"); printf("%d", a); return 0; }
PrintStream
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题