Thursday, 4 January 2018

Learn C language Part 28 String Introduction in C Language



#include <stdio.h>

#include <conio.h>



main()

{



char c[]="abcd\\ndef";

char d[4]="abc";



char e[] = {'a', 'b', 'c', 'd', '\0'};

     OR,

char f[5] = {'a', 'b', 'c', 'd', '\0'};



printf("%s",&c);



printf("\n%s",&d);







}


No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...