puts() can print variables : puts « stdio.h « C Tutorial






puts() can display a string variable

#include <stdio.h>
 
int main(){
    char *name= "asdf";
 
    puts(name);
    return(0);
}
asdf








22.27.puts
22.27.1.puts
22.27.2.puts() function is a simplified version of the printf() function.
22.27.3.puts() can print variables