Hey guys, welcome to CSE Study247, Today I am providing you with TCS Technical Questions useful for students preparing for placements.
Q.1 #include is called
Q.2 The format identifier ‘%i’ is also used for _____ data type?
Q.3 What is the size of an int data type?
Q.4 Which of the following cannot be a structure member?
Q.5 Which of the following structure declaration will throw an error?
Q.6 For the following expression to work, which option should be selected. (In C) string p = “HELLO”;
Q.7 What is the default return-type of getchar()?
Q.8 The value of EOF is_____.
Q.9 If there is any error while opening a file, fopen will return?
Q.10 union test
{
int x;
char arr[8];
int y;
};
int main()
{
printf(“%d”, sizeof(union test));
return 0;
}
Predict the output of above program. Assume that the size of an integer is 4 bytes and size of character is 1 byte. Also assume that there is no alignment needed.
Join For More Updates
1. Official Telegram | Click Here |
2. CS/IT Job Alert | Click Here |
3. Placement Study Materials | Click Here |
4. DRDO & Info Express | Click Here |
4. You Tube | Click Here |