#include<stdio.h>
#include<string.h>
void main()
{
printf("%c\n", "abcdefgh"[4]);
}
Explanation:printf("%c\n", "abcdefgh"[4]); It prints the 5 character of the string "abcdefgh".
Hence the output is 'e'.
#include<stdio.h> int main() { int a[10],M=0,i,n; printf("enter a value for n\n"); scanf("%d",&n); fo...
No comments:
Post a Comment