Q.1 write a program to create binary tree 1 to 16 numbers?
Q.2 write a program to creat a binary search tree for the
member that is given by user?
1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1
what is available in C language but not in C++?
10 Answers CTS, TCS,
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
write a programme that inputs a number by user and gives its multiplication table.
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
What are the types of arrays in c?
What is the size of enum in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Are there namespaces in c?
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
related to rdbms query .
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?