What output would you expect from the following program, char and printf()? - C Language Basics

C examples for Language Basics:printf

Description

What output would you expect from the following program, char and printf()?

Demo Code

#include <stdio.h> 

int main (void) 
{ 
     char c, d; /*from   ww  w  .j a v a2s . c om*/

     c = 'd'; 
     d = c; 
     printf ("d = %c\n", d); 

    return 0; 
}

Result


Related Tutorials