C 语言字符串打印程序

伪代码

现在让我们看看该算法的伪代码 −

procedure compare(A, B)

   IF A is greater than B
      DISPLAY "A is greater than B"
   ELSE
      DISPLAY "A is not greater than B"
   END IF
      
end procedure
-->

实施

现在,我们将看到程序的实际实施 −

#include <stdio.h>

int main() {
   char str[] = "Hello World";

   printf("%s
", str);

   return 0;
}

输出

此程序的输出应为 −

Hello World

string_programs_in_c.html



关于我们 | 隐私条款 | 学习路线
返回顶部