Aspire Faculty ID #13710 · Topic: JAMIA MILLIA ISLAMIA MCA 2022 · Just now
JAMIA MILLIA ISLAMIA MCA 2022

What is the output of following C Program?
#include <stdio.h>
int main()
{
    char grade[] = {'A','B','C'};
    printf("GRADE=%c, ", *grade);
    printf("GRADE=%d", grade);
    return 0;
}

Solution

*grade = 'A', grade = base address of array Output: GRADE=A, GRADE=some address of array

Previous 10 Questions — JAMIA MILLIA ISLAMIA MCA 2022

Nearest first

Next 10 Questions — JAMIA MILLIA ISLAMIA MCA 2022

Ascending by ID
Ask Your Question or Put Your Review.

loading...