C Language - Void

 



#include <stdio.h>

#include <conio.h>


int main ()

{

int a = 33;

float b = 352.33;

char c = 'S';


void *sha;

sha = &a;

sha = &b;

sha = &c;


printf ("The value of a is %d \n", *( (int*) sha)); 

printf ("The value of b is %f \n", *( (float*) sha));

printf ("The value of c is %c \n", *( (char*) sha));


return 0;


// ScreenShots:




Comments

Popular Posts