Explain about the constants which help in debugging?
Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.
Q. where is the below variables stored ? - volatile, static, register
what is c programing
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
How can I convert a number to a string?
What is the advantage of c?
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
Write a code on reverse string and its complexity.
What is #line used for?
What are derived data types in c?
give an example of type casting by a simple c program