1-预备知识[01502118段]

第1讲-小测验

1、单选题:
‍以下各语言书写的代码可认为其功能是相同的。对于该代码,哪项判断是正确的?‎‍C/C++:‎‍#include <stdio.h>‎‍int hehe(){‎‍    printf("hehe");‎‍    hehe();‎‍    return 0;‎‍}‎‍int main(){‎‍    hehe();‎‍    return 0;‎‍}‎‍‎‍Java语言:‎‍public class Main{‎‍ public static int hehe() {‎‍ System.out.println("hehe");‎‍                hehe();‎‍ return 0;‎‍ }‎‍ public static void main(String args[])‎‍    {‎‍ hehe();‎‍    }‎‍}‎‍‎‍Python语言:‎‍def hehe():‎‍    print("hehe")&lr

剩余75%内容付费后可查看

发表评论

电子邮件地址不会被公开。 必填项已用*标注