All pastes #628861 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-21 18:46 UTC
rendered paste body



#include <stdio.h> 

int main() {
	
	// Wel basically im trying to "ADD" to chars so answer would be 4
	char one[] = "2"; // Both numbers are one byte, are they translated to ASCII?
	char two[] = "2";
	printf("Result is %d ",one[0]+two[0]);  // seems like it is doing first ascii code + other ascii code and shows it as char
	return 0;
}