C Programming Codes
前往频道在 Telegram
C Programming Codes || Quizzes || DSA Learn along with the community Any queries admin - @Pradeep_saii
显示更多📈 Telegram 频道 C Programming Codes 的分析概览
频道 C Programming Codes (@c_programming_codes) 英语 语言赛道中的 是活跃参与者。目前社区聚集了 13 370 名订阅者,在 技术与应用 类别中位列第 9 567,并在 印度 地区排名第 31 797 位。
📊 受众指标与增长动态
自 невідомо 创建以来,项目保持高速增长,吸引了 13 370 名订阅者。
根据 18 六月, 2026 的最新数据,频道保持稳定运转。过去 30 天订阅人数变化为 -226,过去 24 小时变化为 -3,整体触达仍然可观。
- 认证状态: 未认证
- 互动率 (ER): 平均受众互动率为 9.82%。内容发布后 24 小时内通常能获得 N/A% 的反应,占订阅者总量。
- 帖子覆盖: 每篇帖子平均可获得 0 次浏览,首日通常累积 0 次浏览。
- 互动与反馈: 受众积极参与,单帖平均反应数为 0。
- 主题关注点: 内容集中在 input, string, scanf("%d, array, element 等核心主题上。
📝 描述与内容策略
作者将该频道定位为表达主观观点的平台:
“C Programming Codes || Quizzes || DSA
Learn along with the community
Any queries
admin - @Pradeep_saii”
凭借高频更新(最新数据采集于 19 六月, 2026),频道始终保持新鲜度与高覆盖。分析显示受众积极互动,使其成为 技术与应用 类别中的关键影响点。
13 370
订阅者
-324 小时
-567 天
-22630 天
帖子存档
13 369
// performing subraction on pointers.
#include<stdio.h>
void main()
{
int a[5]={6,4,2,5,8};
int *p=&a[0];
int *q=&a[4];
printf("p-q=%d\n",p-q); //p-q=-4
*q=15; // now a[4]=15
printf("q-p=%d\n",q-p); //q-p=4
*p=32; //now ,a[0]=32
q=q-3; //now q is pointing to a[1]
printf("value:%d\n",*q); //value:4
p=p+3; //now p is pointing to a[3]
printf("value:%d\n",*p); //value:5
printf("p-q=%d\n",p-q); //p-q=2
}
13 369
follow me in Instagram 👇
https://instagram.com/programmers_heavenn?igshid=ZDc4ODBmNjlmNQ==
13 369
//performing addition on pointer.
#include<stdio.h>
void main()
{
int a[5]={5,3,9,7,2};
int *p=&a[0];
printf("Value : %d\n",*p); //Value :5
printf("Address of element:%u\n",p); //Adress of element:6422280
p=p+2; //The pointer will point to a[2]
*p=4; //Now the value of a[2] is modified to 4
printf("Value :%d\n",*p); //Value:9
printf("Address of element:%u\n",p); //Adress of element:6422288
}
13 369
// // pointer is a variable which stores the adress of other variable.
// // int *p :- p is a pointer variable which stores the adress of any other int type variable
// // (&)adress of (*) indirection/dereferencing operator
// #include<stdio.h>
// void main()
// {int a=5,b=6;
// int *p,*q; //declaration of pointers p and q
// p=&a; // pointer variable p,has the address of variable a
// q=&b; // pointer variable q, has the adress of variable b
// printf("Value of a:%d\n",*p); //*p will give the value of a i.e *(&a) value at adress of a
// printf("Value of b:%d",*q); //*q will give the alue of b i.e *(&b) value at adress of b
// }
//performing addition on pointer.
#include<stdio.h>
void main()
{
int a[5]={5,3,9,7,2};
int *p=&a[0];
printf("Value : %d\n",*p); //Value :5
printf("Address of element:%u\n",p); //Adress of element:6422280
p=p+2; //The pointer will point to a[2]
*p=4; //Now the value of a[2] is modified to 4
printf("Value :%d\n",*p); //Value:9
printf("Address of element:%u\n",p); //Adress of element:6422288
}
13 369
// pointer is a variable which stores the adress of other variable.
// int *p :- p is a pointer variable which stores the adress of any other int type variable
// (&)adress of (*) indirection/dereferencing operator
#include<stdio.h>
void main()
{int a=5,b=6;
int *p,*q; //declaration of pointers p and q
p=&a; // pointer variable p,has the address of variable a
q=&b; // pointer variable q, has the adress of variable b
printf("Value of a:%d\n",*p); //*p will give the value of a i.e *(&a) value at adress of a
printf("Value of b:%d",*q); //*q will give the alue of b i.e *(&b) value at adress of b
}
13 369
// Program to reverse a sring using a loop.
#include<stdio.h>
#include<string.h>
int main()
{ char str[50];
printf("Enter the string:");
gets(str);
int i,l=strlen(str);
for(i=0;i<l/2;i++)
{
char ch=str[i];
str[i]=str[l-1-i];
str[l-1-i]=ch;
}
printf("Reversed string:\n%s",str);
return 0;
}
13 369
// Program to reverse a sring using strrev function.
#include<stdio.h>
#include<string.h>
int main()
{ char str[20]="coding";
strrev(str);
printf("Reversed string:\n%s",str);
return 0;
}
13 369
// Program to concatenate two strings using a loop.
#include<stdio.h>
#include<string.h>
int main()
{ int l1,l2,i;
char s1[50]="C_";
char s2[50]="Programming";
l1=strlen(s1);
l2=strlen(s2);
for(i=0;i<=l2;i++)
{
s1[l1+i]=s2[i];
}
printf("Concatenated string:\n%s",s1);
return 0;
}
13 369
// Program to concatenate two strings using strcat function.
#include<stdio.h>
#include<string.h>
int main()
{ char s1[50]="C_";
char s2[50]="Programming";
strcat(s1,s2);
printf("Concateated string:\n%s",s1);
return 0;
}
13 369
// Program to find length of a string using a loop.
#include<stdio.h>
int main()
{ int len=0,i;
char string[100];
printf("Enter string:");
gets(string);
for(i=0;string[i]!='\0';i++)
{
len++;
}
printf("Length of the string is: %d",len);
return 0;
}
13 369
// Program to find length of a string using strlen function
#include<stdio.h>
#include<string.h>
int main()
{ int len=0;
char string[100];
printf("Enter string:");
gets(string);
len=strlen(string);
printf("Length of the string is: %d",len);
return 0;
}
13 369
//Program to read a string and print it.
#include<stdio.h>
int main()
{char name[20];
printf("Enter name:");
gets(name);
puts(name);
return 0;
}
13 369
//Program for matrix multiplication.
#include<stdio.h>
int main()
{int r1,c1,r2,c2;
printf("Enter number of rows in first matrix:");
scanf("%d",&r1);
printf("Enter number of coulumns in first matrix:");
scanf("%d",&c1);
printf("Enter number of rows in second matrix:");
scanf("%d",&r2);
printf("Enter number of coulumns in second matrix:");
scanf("%d",&c2);
if(c1==r2) //two matrices can be multiplied only if coloumns of first matrix is equal to rows of second matrix
{
printf("The matrices can be multiplied.\n");
int a[r1][c1],b[r2][c2],c[r1][c2],i,j,k,sum=0;
printf("Enter the elements of first matrix:\n");
for(i=0;i<r1;i++)
{
for(j=0;j<c1;j++)
{
printf("Enter the Element at a[%d][%d]:",i,j);
scanf("%d",&a[i][j]);
}
}
printf("Enter the Elements of second matrix:\n");
for(i=0;i<r2;i++)
{
for(j=0;j<c2;j++)
{
printf("Enter the Element at b[%d][%d]:",i,j);
scanf("%d",&b[i][j]);
}
}
for(i=0;i<r1;i++)
{
for(j=0;j<c2;j++)
{ sum=0;
for(k=0;k<c1;k++)
{
sum=sum+(a[i][k]*b[k][j]);
}
c[i][j]=sum;
}
}
printf("Matrix 1:\n");
for(i=0;i<r1;i++)
{
for(j=0;j<c1;j++)
{
printf("%d\t",a[i][j]);
}
printf("\n");
}
printf("Matrix 2:\n");
for(i=0;i<r2;i++)
{
for(j=0;j<c2;j++)
{
printf("%d\t",b[i][j]);
}
printf("\n");
}
printf("Matrix 1 * Matrix 2:\n");
for(i=0;i<r1;i++)
{
for(j=0;j<c2;j++)
{
printf("%d\t",c[i][j]);
}
printf("\n");
}
}
else{
printf("Matrix cannot be multipled Enter the row and column number correctly.");
}
return 0;
}
13 369
//Program to do sum of 2 matrices and store the sum in third matrix, read the elements of matrix.
#include<stdio.h>
int main()
{int a[2][3],b[2][3],c[2][3],i,j;
printf("Enter elemnts of first matrix:\n");
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ printf("Enter the element at a[%d][%d]:",i,j);
scanf("%d",&a[i][j]);
}
}
printf("Enter elemnts of second matrix:\n");
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ printf("Enter the element at b[%d][%d]:",i,j);
scanf("%d",&b[i][j]);
}
}
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ c[i][j]=a[i][j]+b[i][j];
}
}
printf("The sum of two matices=\n");
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ printf("%d\t",c[i][j]);
}
printf("\n");
}
return 0;
}
13 369
//Program to perform sum of individual row and column of 3X3 matrix, read the elements of matrix.
#include<stdio.h>
int main()
{int m[3][3],i,j,sr,sc;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{ printf("Enter the element at m[%d][%d]:",i,j);
scanf("%d",&m[i][j]);
}
}
printf("The matrix is:\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t",m[i][j]);
}
printf("\n");
}
for(i=0;i<3;i++)
{ sr=0,sc=0;
for(j=0;j<3;j++)
{ sr=sr+m[i][j];
sc=sc+m[j][i];
}
printf("Th sum of row %d:%d\n",i,sr);
printf("The sum of column %d:%d\n",i,sc);
}
}
13 369
//Program to read 2X3 matrix and print transpose of it (3X2).
#include <stdio.h>
int main() {
int m[2][3],i,j;
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ printf("Enter the element at m[%d][%d]:",i,j);
scanf("%d",&m[i][j]);
}
}
printf("The matrix is:\n");
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t",m[i][j]);
}
printf("\n");
}
printf("The transposed matrix is:\n");
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
{
printf("%d\t",m[j][i]);
}
printf("\n");
}
return 0;
}
13 369
//Program to print 2X3 matrix and find sum of all elemets in it.
#include <stdio.h>
int main() {
int m[2][3],i,j,sum=0;
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{ printf("Enter the element at m[%d][%d]:",i,j);
scanf("%d",&m[i][j]);
sum=sum+m[i][j];
}
}
printf("The matrix is:\n");
for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t",m[i][j]);
}
printf("\n");
}
printf("Sum of all the elements of matrix:%d",sum);
return 0;
}
13 369
/*Program to read 2 arrays of size 5 and store integers in them ,then
calculate the sum of corresponding elements of those two array's and
store the result in third array .*/
#include <stdio.h>
int main() {
int a[5],b[5],c[5];
printf("Enter the elements of first array:\n");
for(int i=0;i<5;i++)
{
printf("Enter the Element at %d index:",i);
scanf("%d",&a[i]);
}
printf("Enter the elements of second array:\n");
for(int i;i<5;i++)
{
printf("Enter the Element at %d index:",i);
scanf("%d",&b[i]);
}
printf("Elements of Third Array after calculating sum of 2 arrays:\n");
for(int i=0;i<5;i++)
{
c[i]=a[i]+b[i];
printf("The Element at index %d is :%d\n",i,c[i]);
}
return 0;
}
13 369
//Program to read array of 10 integers and count number of even and odd elements.
#include <stdio.h>
int main() {
int n[10],even=0,odd=0;
for(int i=0;i<10;i++)
{
printf("Enter element at index %d:",i);
scanf("%d",&n[i]);
if(n[i]%2==0){
even++;
}
else{
odd++;
}
}
printf("Total number of even numbers are:%d\n",even);
printf("Total number of odd numbers are:%d\n",odd);
return 0;
}
13 369
//Program to read marks of 5 subjects and calculate total marks and average.
#include <stdio.h>
int main() {
float marks[5],sum=0.0;
float avg;
for(int i=0;i<5;i++)
{ printf("Enter marks in Subject %d:",i+1);
scanf("%f",&marks[i]);
sum=sum+marks[i];
}
avg=sum/5;
printf("Total marks obtained:%.2f\n",sum);
printf("Average:%f",avg);
return 0;
}
现已上线!2025 年 Telegram 研究 — 年度关键洞察 
