What is Linked List

List of Program of C language

  1. WAP to ADD, Sum, MUL, Divide of two numbers X, Y?
  2. WAP to enter five nos. and print sum and average?
  3. WAP to enter Principle, Rate, Time and calculate Simple Interest?
  4. WAP to enter basic and calculate hra 2% of basic, da 3%of basic and find gross salary?
  5. WAP to exchange value of two Variables of Two Values X, Y?
  6. WAP to print prime or not prime numbers?
  7. WAP to print even or odd numbers?
  8. WAP to reverse numbers?
  9. WAP of factorial numbers?
  10. WAP of Fibonacci series?
  11. WAP fine the largest numbers in array?
  12. WAP sum of two matrix?
  13. WAP Mul of two Matrix?
  14. WAP print reverse order of array?
  15. WAP of array implementation of queue?
  16. WAP array of pointer?
  17. WAP array of structure?
  18. WAP of automatic storage class?
  19. WAP of Binary Search?
  20. WAP of Bubble sort, insertion sort and selection sort?
  21. WAP of Call by value and Call by reference?
  22. WAP of stack using array?
  23. WAP of stack using linked list?
  24. WAP of Merging of two  D array?
  25. WAP of Transpose of Two D Array?
  26. WAP of recursive function?
  27. WAP of Singly linked list in C with using structure?
  28. WAP of smallest and largest number in 2 D Array?
  29. WAP of Negative and positive number ?
  30. WAP to display largest of from three inputs?
  31. WAP of Looping statement
  32. For Loop
  33. While loop
  34. Do while loop

Using these loop make a program of even and odd number, prime and not prime numbers, negative and positive numbers etc.

  • WAP of loop control statement

(a)Break

(b)continue

(c ) exit(0)

(d)goto

Using these loop control statement write a program of prime or not prime numbers and even and odd number etc.

  • WAP of Linear Search?
  • WAP of Binary search?
  • WAP of insert,search and delete in Array?
  • WAP of string create a string count the words of string and reverse the string?
  • WAP search the string?
  • WAP matrix add calculating with 2 D Array
  • Row major ording
  • Coolum Major ordering
  • WAP of file handling with file oprations

(a)Read

(b)Write

(c )append

(d)read/write

37. WAP enter two string copy one string to another string?

38. WAP to enter the string and count word and space in string?

39. WAP to convert decimal to binary number?

40. WAP to print their value in decreasing order?

41.WAP to enter string convert lower alpha to upper alpha?

42. WAP to sort the character in the string

Input-> COMPU

OUTPUT->CMOPU

43. WAP to remove space from string?

44.WAP of Sparse Matrix?

45.WAP display name, roll, marks, t.makrs, sub, hindi, eng, sci, math  using string in array?

46.WAP display name, desi, contact etc. in string?

47. WAP to compare to string equal or not?

48. WAP find the sum of prime numbers 2-100?

49. WAP to enter two numbers and swap their values

50. WAP to the enter the user want at the end it should display the count the positive, negative and zero

51.WAP to digit wise reverse

52. WAP to digit wise multiply

53 WAP to digit wise reverse and add 5 with it.

54. WAP to print count digit numbers

55. WAF create a factorial of number with return argument

56. WAF of prime and not prime numbers

57 WAF of stack

58 WAF to enter the n number print their sum of total numbers

59 WAP of deep copying and shallow coping

60 WAP array of pointer

61.WAP to show the contents of pointer an array of pointer

62. WAP of pointer with pointer

63 WAP of two point p1 and p2

 Int  i=10,j=20; compare tow pointers

64. WAP to exchange two integer values using function in pointer

65. WAP to find the sum of all element stored in array

Int *p, sum=0, I;

Int A[3]={4,5,6}

66. WAP to return largest value in pointer

67.  WAP 2D Array elements using pointer?

68. WAP of structure pointer

69. WAP of Nested Structure

70. WAP of Singly linked through structure in C

71. WAP of Doubly linked list through structure in C

72. WAP of Circular linked list through structure in C

73. WAP of implementation stack using linked list in C

74. WAP to store even values in another link list

75. WAP of recursive to display the nodes of linked list

76. WAP of stack using array and linked list.

Singly linked list in c language

#include<stdio.h>
#include<process.h>
struct node
{
	int data;
	struct node *next;
};
typedef struct node *singly;
singly createlist()
{
	int x;
	singly head,tail,tmp;
	head=NULL;
	printf("\n enter value(-99 to stop)");
	scanf("%d",&x);
	while(x!=-99)
	{
		tmp=(singly)malloc(sizeof(struct node));
		tmp->data=x;
		if(head==NULL)
		{
			head=tail=tmp;
		}
		else
		{
			tail->next=tmp;
			tail=tmp;
		}
		tail->next=NULL;
		printf("\n Enter value(-99 to stop)");
		scanf("%d", &x);
			}
			return(head);
}
void traverse(singly head)
{
	singly p=head;
	while(p!=NULL)
	{
		printf("%d --> ",p->data);
		p=p->next;
	}
}
singly inserthead(singly head,int ins)
	{
		singly tmp;
		tmp=(singly)malloc(sizeof(struct node));
		tmp->data=ins;
		if(head==NULL)
		{
			printf("\n error insert");
		}
		else
		{
			tmp->next=head;
			head=tmp;
		}
		return(head);
}
singly insertbefore(singly head, int srch,int ins)
{
	singly p=head,tmp;
	while(p!=NULL)
	{	if(p->next->data==srch)
		{
			break;
		}
		p=p->next;
	}
	if(p!=NULL)
	{
		tmp=(singly)malloc(sizeof(struct node));
	
		tmp->data=ins;
		tmp->next=p->next;
		p->next=tmp;
		
	}
	else
	{
		printf("\n error insert");
	}
	return(head);
}
singly deletetail(singly head)
{
	singly p=head,q=head->next;
	while(q->next!=NULL)
	{
		p=p->next;
		q=q->next;
	}
	p->next=NULL;
	free(q);
	return(head);
}
singly deleteafter(singly head,int srch)
{
	singly p=head,q=head->next;
	while(p->next!=NULL)
	{
		if(p->data==srch)
		{
			break;
		}
		p=p->next;q=q->next;
	}
	if(p->next==NULL)
	{
		printf("\n delete error");
	}
	else
	{
		p->next=q->next;
		free(q);
	}
	return(head);
}


int main()
{
	singly head;int ch,ins;char cnt;int srch;

	do{
		printf("\n1. create list\n2. traverse\n3. insert as head\n4. insert before\n5. Delete tail\n6. Delete after\nEnter your choice : ");
	scanf("%d",&ch);
	switch(ch){
		case 1:
	head=createlist();
		break;
		case 2:
	traverse(head);
		break;
		case 3:
		printf("\nenter value to insert : ");
		scanf("%d",&ins);
	head=inserthead(head,ins)	;
		break;
		case 4:
		printf("\n enter value to insert :");
		scanf("%d",&ins);
		printf("\n enter value to search :");
		scanf("%d",&srch);
	head=insertbefore(head,srch,ins)	;
		break;
		case 5:
	head=deletetail(head);
		break;
		case 6:
		printf("\n enter value to search");
		scanf("%d",&srch);
		head=deleteafter(head,srch) ;
		break;	
	}
	fflush(stdin);
	printf("\ndo you want to continue (y/n) : ");
	scanf("%c",&cnt);
	}while(cnt=='y');
}

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-7462577112023113"
     data-ad-slot="1814817697"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

upload image ajax

Ajax code for image upload

$(document).ready(function (e) {
    $('#imageUploadForm').on('submit',(function(e) {
        e.preventDefault();
        var formData = new FormData(this);

        $.ajax({
            type:'POST',
            url: $(this).attr('action'),
            data:formData,
            cache:false,
            contentType: false,
            processData: false,
            success:function(data){
                console.log("success");
                console.log(data);
            },
            error: function(data){
                console.log("error");
                console.log(data);
            }
        });
    }));

    $("#ImageBrowse").on("change", function() {
        $("#imageUploadForm").submit();
    });
});

Basic Php Code for File Upload

$filetype = array('jpeg','jpg','png','gif','PNG','JPEG','JPG');
   foreach ($_FILES as $key )
    {

          $name =time().$key['name'];

          $path='local_cdn/'.$name;
          $file_ext =  pathinfo($name, PATHINFO_EXTENSION);
          if(in_array(strtolower($file_ext), $filetype))
          {
            if($key['name']<1000000)
            {

             @move_uploaded_file($key['tmp_name'],$path);
             echo $name;

            }
           else
           {
               echo "FILE_SIZE_ERROR";
           }
        }
        else
        {
            echo "FILE_TYPE_ERROR";
        }

श्र से शब्द

ज्ञ अक्षर वाले शब्द

ज्ञ देवनागरी वर्णमाला में ‘ज‘ और ‘ञ‘ के योग से बना हुआ एक अक्षर जिसका उच्चारण हिंदी में ग्य, मराठी में, ‘द्न्य’ और गुजराती में ‘जन’ होता है। यह एक व्यंजन है।

  • ज्ञानार्जन
  • ज्ञानेद्रिय
  • ज्ञानात्मक
  • ज्ञानसागर
  • ज्ञानमूर्ति

ज्ञ शब्द से शुरू होने वाले लड़कों के नाम


ज्ञानकीर्ति                               प्रसिद्ध ज्ञान के साथ
ज्ञानमूर्ति                                ज्ञान का प्रतीक
ज्ञानभास्कर                           ज्ञान का सूर्य
ज्ञानचन्द्र                                ज्ञान की मून
ज्ञानदर्पण                               ज्ञान का आईना
ज्ञानदर्शन                               सुप्रीम ज्ञान
ज्ञानदेव                                   ज्ञान का भगवान
ज्ञानदीप                                  ज्ञान का दीपक
ज्ञानगम्य                               समझ से प्राप्य
ज्ञानकेतू                                  खुफिया के निशान के साथ
ज्ञानघनचार्य                          शुद्ध बुद्धि के शिक्षक
ज्ञानपवन                               सफ़ाई ज्ञान
ज्ञानप्रभ                                  ज्ञान के साथ शानदार
ज्ञानप्रकाश                             ज्ञान का प्रकाश

ultimate member plugin not redirect after login

Solution 1

In Ultimate member -> Settings -> User roles -> Subscriber (or another role you want to configure). Then in Login options “Action to be taken after login – Redirect to URL” and set it to the URL I specified.
THEN, click in the right sidepanel on top “Update Role” (big blue button).

Solution 2

Go to Ultimate Member > Forms
Select the Login form
On the right under Options, select Redirect to URL from dropdown
Under that, put the URL in the Set Custom Redirect URL field

What is Advanced Security of reCAPTCHA?

reCAPTCHA protects and defends

reCAPTCHA is built for security. Armed with state of the art technology, reCAPTCHA is always at the forefront of spam and abuse fighting trends so it can provide you an unparalleled view into abusive traffic on your site.

Easy for People.
Hard for Bots

Purposefully designed. And actively aware. reCAPTCHA knows when to be easy on people and hard on bots.

Help everyone, everywhere – One CAPTCHA at a time.

Hundreds of millions of CAPTCHAs are solved by people every day. reCAPTCHA makes positive use of this human effort by channeling the time spent solving CAPTCHAs into annotating images and building machine learning datasets. This in turn helps improve maps and solve hard AI problems.

Google reCAPTCHA v3

Google reCAPTCHA v3  helps you detect abusive traffic on your website without any user friction. Google reCAPTCHA is a free service that protects your website from spam and abuse. Google reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.

The reCAPTCHA advantage

  • Advanced Security
  • Ease of Use
  • Creation of Value

Add title description keyword meta tag without using plugin in wordpress

The search bots will search for necessary information for users based on the meta tags’ and the article’s content. The page or post will rank higher in search result pages if its meta tags contain important keywords. Therefore, it should be concise and contain important keywords. It will be better for SEO if you can put the keyword to the beginner of the description is better.

Description and keyword without plugin
Paste this in theme’s functions.php file.


function add_meta_tags() {
    global $post;
    if ( is_single() ) {
        $meta = strip_tags( $post->post_content );
        $meta = strip_shortcodes( $post->post_content );
        $meta = str_replace( array("\n", "\r", "\t"), ' ', $meta );
        $meta = substr( $meta, 0, 125 );
        $keywords = get_the_category( $post->ID );
        $metakeywords = '';
        foreach ( $keywords as $keyword ) {
            $metakeywords .= $keyword->cat_name . ", ";
        }
        echo '<meta name="description" content="' . $meta . '" />' . "\n";
        echo '<meta name="keywords" content="' . $metakeywords . '" />' . "\n";
    }
}
add_action( 'wp_head', 'add_meta_tags' , 2 );
function gretathemes_meta_description() {
    global $post;
    if ( is_singular() ) {
        $des_post = strip_tags( $post->post_content );
        $des_post = strip_shortcodes( $post->post_content );
        $des_post = str_replace( array("\n", "\r", "\t"), ' ', $des_post );
        $des_post = mb_substr( $des_post, 0, 300, 'utf8' );
        echo '<meta name="description" content="' . $des_post . '" />' . "\n";
    }
    if ( is_home() ) {
        echo '<meta name="description" content="' . get_bloginfo( "description" ) . '" />' . "\n";
    }
    if ( is_category() ) {
        $des_cat = strip_tags(category_description());
        echo '<meta name="description" content="' . $des_cat . '" />' . "\n";
    }
}
add_action( 'wp_head', 'gretathemes_meta_description');

Title tag without plugin

<title><?php wp_title(' | ', 'echo', 'right'); ?><?php bloginfo('name'); ?></title>

open graph tags example

Open Graph tags is a protocol (i.e. a set of rules) that is used to integrate any web page into the social graph. For example, Facebook can be your social graph or social circle.

Using of Open Graph protocol, you can tell Facebook how to render your shared content to displayed on Facebook.

Open Graph Meta Tags Example

To enable your web page into a graph object, you need to use Open Graph meta tags.

Following are examples of such meta tags:

<meta property="og:title" content=""/>
<meta property="og:type" content=""/>
<meta property="og:url" content=""/>
<meta property="og:image" content=""/>
<meta property="fb:admins" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=""/>