O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

C program with char cast: output of int array loop

Ahmed El-Dawy 1 pergunta

Fazer o quiz

Perguntas do quiz (1)

  1. 1#include <stdio.h>
    int main()
    {
    int a[5] = {1, 2, 3, 4, 5};
    int i;
    for (i = 0; i < 5; i++)
    if ((char)a[i] == '5')
    printf("%d\n", a[i]);
    else
    printf("FAIL\n");
    }
    1. AThe compiler will flag an error
    2. BThe program will compile and print the output 5
    3. CThe program will compile and print the ASCII value of 5
    4. DThe program will compile and print FAIL for 5 times

Informações

Descrição
Quiz sobre Sem título, criado por Ahmed El-Dawy em 20-03-2020.
Idioma
English
Visualizações
0
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Mais sobre Data Types, Variables and Operators

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?