When should a type cast be used?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

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); }

1 Answers  


Why c is called free form language?

0 Answers  


What is void pointers in c?

0 Answers  


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  


Why main is used in c?

0 Answers  






Write a program to print fibonacci series without using recursion?

0 Answers  


What happens if header file is included twice?

0 Answers  


Toggle nth bit in a given integer - num

5 Answers   Qualcomm,


Define Array of pointers.

0 Answers  


how to implement stack work as a queue?

2 Answers  


send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?

0 Answers   TCS,


What is %d called in c?

0 Answers  


Categories