1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
12 74136Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
3 8389Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
2 5000in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
4 7638#include
we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?
4 7828
Why clrscr is used in c?
What is getch?
What are the functions to open and close file in c language?
What is declaration and definition in c?
How can I generate floating-point random numbers?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is openmp in c?
What is a program flowchart and how does it help in writing a program?
What is meant by high-order and low-order bytes?
Can we declare function inside main?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
How can I write a function that takes a format string and a variable number of arguments?
Explain pointers in c programming?
State the difference between realloc and free.
What is the use of #define preprocessor in c?