#include<stdio.h>
int main()
{
int a[3][3][2]=
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18};
printf("%d\n",*(*(*a+1));
return 0;
}
What will be the output of the above question? And how?
Answer / nikhil kumar sahu
Error...
one Right parenthesis is missing for printf function
Is This Answer Correct ? | 7 Yes | 0 No |
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
How do I initialize a pointer to a function?
What are the different types of data structures in c?
What is a built-in function in C?
Can you subtract pointers from each other? Why would you?
What is context in c?
how can i print "hello"
What is an lvalue in c?
write a program to generate address labels using structures?
write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)
7 Answers Consultancy, DBU, FD, JK Associates, Kobe, Satyam,
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?