write a function to give demostrate the functionality of 3d
in 1d. function prototye:
change(int value,int indexX,int indexY,int indexZ, int []
1dArray);
value=what is the date; indexX=x-asix indexY=y-axis
indexZ=z-axis and 1dArray=in which and where
the value is stored??
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
What is the main difference between STRUCTURE and UNION?
Design an implement of the inputs functions for event mode
Write a routine that prints out a 2-D array in spiral order
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
write a c program to Reverse a given string using string function and also without string function
which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.
void main() { printf(“sizeof (void *) = %d \n“, sizeof( void *)); printf(“sizeof (int *) = %d \n”, sizeof(int *)); printf(“sizeof (double *) = %d \n”, sizeof(double *)); printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct unknown *)); }
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error