programming languages Online Quiz - 343
Description: programming languages Online Quiz - 343 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Attempted
0/20
Correct 0
Score 0
‹
›
void main() { char ch='ABCD'; switch(ch) { case 'ABCD': printf("HelloABCD"); break; case 'A': printf("HelloA"); break; case 'B': printf("HelloB"); break; case 'C': printf("HelloC"); break; case 'D': printf("HelloD"); break; } }
void main() { printf("Hello"); return 5; printf(" World"); }
void main() { int *ptr; int item=5; int arr[]={10,20,30,40,50}; ptr = &item; for(;item>=0;item--) { printf("%d ",*ptr); ptr--; } }
Each statement in SAS should end with semicolon (;)
Interpret the meaning of the code %include "readit.sas";
length(string) - returns number of characters in a string
scan(string,n,) - returns the nth “word” in string
translate(string,to,from) - changes from chars to to chars