skip to main
|
skip to sidebar
Unix Techies
Friday, April 24, 2015
This program prints "Empty String".
int a[]="\0"; if (printf("%s", a)) printf("Non Empty"); else printf("Empty");
This is not an Empty String as size of the sting is 2 (Two).
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2020
(1)
►
February
(1)
►
2019
(2)
►
August
(2)
▼
2015
(5)
►
May
(2)
▼
April
(2)
Memory Alignment
This program prints "Empty String". int a[]="...
►
March
(1)
►
2014
(2)
►
April
(1)
►
January
(1)
►
2011
(4)
►
August
(3)
►
July
(1)
►
2010
(1)
►
December
(1)
►
2009
(1)
►
September
(1)
About Me
Rajesh
I am an IoT and AWS Serverless Expert. A Linux User / Lover for last 20 years.
View my complete profile
No comments:
Post a Comment