Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not)
- The array length is arbitrary
- output the results to the stdout
Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...
main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason
write a programe returns the number of times the character appears in the string
What is FIFO?
A stack can be implemented only using array?if not what is used?
What is use of null pointer in c?
Write a program to print prime nums from 1-20 using c programing?
How do you define structure?
please give me some tips for the placement in the TCS.
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?
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); }
what is difference between array,strutter,union and pointers
3 Answers CTS, Lovely Professional University, Mannar Company,