C Programming Viva Questions
C Programming Viva Questions
char ch = 'A';
printf("%d\n", ch);
int x = 5;
int y = 10;
x+= y;
int main() {
printf("Hello, World!")
return 0;
}
#include <stdio.h>
int main() {
int number;
printf("The value of x is %d\n", x);
return 0;
}
#include <stdio.h>
int main() {
printf("This is a syntax error;
return 0;
}
#include <stdio.h>
int main() {
int x = (5 + 3 * (2 - 1);
printf("The value of x is %d\n", x);
return 0;
}
5. What is the maximum value that an int data type can hold in C?