#include <stdio.h>int main() {int i, j, rows;printf("Enter the number of rows: ");scanf("%d", &rows);for (i = 1; i <= rows; ++i) {for (j = 1; j <= i; ++j) {printf("* ");}printf("\n");}return 0;}
Find the size of the variable #include<stdio.h>int main() {int intType;float floatType;double doubleType;char charType;// sizeof evaluates the size of a variableprintf("Size of int: %zu bytes\n", sizeof(intType));printf("Size of float: %zu bytes\n", sizeof(floatType));printf("Size of double: %zu bytes\n", sizeof(doubleType));printf("Size of char: %zu byte\n", sizeof(charType));return 0;}
#include <stdio.h>What is the output of the above snippet?int main(){FILE *fp;char ch:fp = fopen (__FILE_,"r") ;do{ch= getc(fp);putchar(ch);}while (ch != EOF);fclose(fp);return 0:}