Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
    char *str="ONE"
    str++;
    switch(str){
        case "ONE":printf("Brazil");
                break;
        case "NE": printf("Toy story");
                break;
        case "N":  printf("His Girl Friday");
                break;
        case "E":  printf("Casino Royale");
     }  
}
Choose all that apply: 

A Brazil 

B Toy story 

C His Girl Friday 

D Casino Royale 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 1093

Copyright © 2024. Powered by Intellect Software Ltd