how we can store more than 128chars in char-variable.
Latest Answer: simply by making it as unsigned char so the the last bit which is sign bit will be used to store a number now thus range becomes 0-255. ...
Is there any relation between a[i] and i[a] while using arrays..can anyone help me with this....
Latest Answer: Bath a[i] and i[a] are same.....the variable name 'a' contains the basic address of the array.so a[i] means base address + index 'i' and also i[a] means base address + index 'i' ...
Is structure a value type or a reference type? why?
Latest Answer: Answer is Structure is Value type ...
Write a program in C which will print all the possible combination of a given word. E.G. if the word is ABCD then the output should be ABCD, ABDC, ACBD, ACDB, ADBC, ADCB, BACD, BADC, BCAD, BCDA, BDAC,
Latest Answer: #include #include #include typedef unsigned int u32;#define SWAP(a, b) do { a ^= b; b ^= a; a ^= b; } while (0)u32 print_ctr;void PrintAllPerms(char *str);void RecurseAllPerms(char *str, u32 len, char *base);int ...
Develop a program that receives the month and year from the keyboard as integers and prints the calendar in the following format March 2006
Latest Answer: here is the solution:#include#include//0 is for monday, 1 for tuesday and so onint leapyear(int year){ if (year % 400 == 0) return 1; if (year % 4 == 0 && year % 100 != 0) ...
Write a program to generate all combinations of 1,2 and 3 using for loop?
Latest Answer: int main (){ int i,j,k; for(i=1;i
What will be the code in c to get the following output?A B C D E F G F E D C B AA B C D E F F E D C B AA B C D E E D C B AA B C D D C B AA B C C B AA B
Latest Answer: #include #include #include void main() { char arr[]="ABCDEFG"; int i,j,length=strlen(arr); ...
Latest Answer: Addition of 2 no without using semicolon:void main(){ while( !printf("sum value=%d",10+20) ) { } }or,void main(){ if( printf("sum value=%d",10+20) ) { } }or,void main(){ switch( printf("sum value=%d",10+20) ...
A=5;c=++a + ++a + ++a;What would be value of c after this statement and how does it come?If we have the codea=5;c=a++ + a++ + a++;What would be the value of c then?
Latest Answer: Array name is the base address of the aaray. By using this base address we can refer to the array elements. that is a[0] means "base address + 0th" element. that is array element number is the distence from the base address to the specified data ...
View page << Previous 2 3 4 5 [6] 7 8 9 10 11 Next >>

Go Top